summaryrefslogtreecommitdiff
path: root/arch/mips/loongson1
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-08 17:11:17 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 22:14:24 +0400
commitafe046be983f7da53c4bdcfa9a7689d163f08196 (patch)
tree73726c2756e9859e9572f138ab757e0854b1e346 /arch/mips/loongson1
parent7bccfcd2eb09297e0406b38cfac8e1f3001964f3 (diff)
downloadlinux-afe046be983f7da53c4bdcfa9a7689d163f08196.tar.xz
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>
Diffstat (limited to 'arch/mips/loongson1')
-rw-r--r--arch/mips/loongson1/common/platform.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/mips/loongson1/common/platform.c b/arch/mips/loongson1/common/platform.c
index e92d59c4bd78..2874bf224418 100644
--- a/arch/mips/loongson1/common/platform.c
+++ b/arch/mips/loongson1/common/platform.c
@@ -13,6 +13,7 @@
#include <linux/phy.h>
#include <linux/serial_8250.h>
#include <linux/stmmac.h>
+#include <linux/usb/ehci_pdriver.h>
#include <asm-generic/sizes.h>
#include <loongson1.h>
@@ -107,13 +108,18 @@ static struct resource ls1x_ehci_resources[] = {
},
};
+static struct usb_ehci_pdata ls1x_ehci_pdata = {
+ .port_power_off = 1,
+};
+
struct platform_device ls1x_ehci_device = {
- .name = "ls1x-ehci",
+ .name = "ehci-platform",
.id = -1,
.num_resources = ARRAY_SIZE(ls1x_ehci_resources),
.resource = ls1x_ehci_resources,
.dev = {
.dma_mask = &ls1x_ehci_dmamask,
+ .platform_data = &ls1x_ehci_pdata,
},
};