Commit afe046be983f7da53c4bdcfa9a7689d163f08196
Committed by
Greg Kroah-Hartman
1 parent
7bccfcd2eb
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
MIPS: Loongson 1B: use ehci-platform instead of ehci-ls1x.
The Loongson 1B EHCI driver does nothing more than what the EHCI platform driver already does, so use the generic implementation. Signed-off-by: Florian Fainelli <florian@openwrt.org> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 2 changed files with 8 additions and 1 deletions Side-by-side Diff
arch/mips/configs/ls1b_defconfig
arch/mips/loongson1/common/platform.c
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | #include <linux/phy.h> |
14 | 14 | #include <linux/serial_8250.h> |
15 | 15 | #include <linux/stmmac.h> |
16 | +#include <linux/usb/ehci_pdriver.h> | |
16 | 17 | #include <asm-generic/sizes.h> |
17 | 18 | |
18 | 19 | #include <loongson1.h> |
19 | 20 | |
20 | 21 | |
... | ... | @@ -107,13 +108,18 @@ |
107 | 108 | }, |
108 | 109 | }; |
109 | 110 | |
111 | +static struct usb_ehci_pdata ls1x_ehci_pdata = { | |
112 | + .port_power_off = 1, | |
113 | +}; | |
114 | + | |
110 | 115 | struct platform_device ls1x_ehci_device = { |
111 | - .name = "ls1x-ehci", | |
116 | + .name = "ehci-platform", | |
112 | 117 | .id = -1, |
113 | 118 | .num_resources = ARRAY_SIZE(ls1x_ehci_resources), |
114 | 119 | .resource = ls1x_ehci_resources, |
115 | 120 | .dev = { |
116 | 121 | .dma_mask = &ls1x_ehci_dmamask, |
122 | + .platform_data = &ls1x_ehci_pdata, | |
117 | 123 | }, |
118 | 124 | }; |
119 | 125 |