aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-08 09:11:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-22 14:26:20 -0400
commitee2ef6b89a8f6fa20848d7ef6df4bffa6d9ab146 (patch)
treea360e1b6e154ef45d19920b14bb79c20fd304a1b /arch
parentc23920b05be41998dc8e5796eb874df098a97e9f (diff)
MIPS: Netlogic: convert to use OHCI platform driver
The OHCI platform driver is suitable for use by the Netlogic XLR platform so use this driver instead of the OHCI XLS platform driver. 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')
-rw-r--r--arch/mips/netlogic/xlr/platform.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/mips/netlogic/xlr/platform.c b/arch/mips/netlogic/xlr/platform.c
index 144c5c609840..507230eeb768 100644
--- a/arch/mips/netlogic/xlr/platform.c
+++ b/arch/mips/netlogic/xlr/platform.c
@@ -16,6 +16,7 @@
16#include <linux/serial_reg.h> 16#include <linux/serial_reg.h>
17#include <linux/i2c.h> 17#include <linux/i2c.h>
18#include <linux/usb/ehci_pdriver.h> 18#include <linux/usb/ehci_pdriver.h>
19#include <linux/usb/ohci_pdriver.h>
19 20
20#include <asm/netlogic/haldefs.h> 21#include <asm/netlogic/haldefs.h>
21#include <asm/netlogic/xlr/iomap.h> 22#include <asm/netlogic/xlr/iomap.h>
@@ -128,12 +129,14 @@ static struct usb_ehci_pdata xls_usb_ehci_pdata = {
128 .caps_offset = 0, 129 .caps_offset = 0,
129}; 130};
130 131
132static struct usb_ohci_pdata xls_usb_ohci_pdata;
133
131static struct platform_device xls_usb_ehci_device = 134static struct platform_device xls_usb_ehci_device =
132 USB_PLATFORM_DEV("ehci-platform", 0, PIC_USB_IRQ); 135 USB_PLATFORM_DEV("ehci-platform", 0, PIC_USB_IRQ);
133static struct platform_device xls_usb_ohci_device_0 = 136static struct platform_device xls_usb_ohci_device_0 =
134 USB_PLATFORM_DEV("ohci-xls-0", 1, PIC_USB_IRQ); 137 USB_PLATFORM_DEV("ohci-platform", 1, PIC_USB_IRQ);
135static struct platform_device xls_usb_ohci_device_1 = 138static struct platform_device xls_usb_ohci_device_1 =
136 USB_PLATFORM_DEV("ohci-xls-1", 2, PIC_USB_IRQ); 139 USB_PLATFORM_DEV("ohci-platform", 2, PIC_USB_IRQ);
137 140
138static struct platform_device *xls_platform_devices[] = { 141static struct platform_device *xls_platform_devices[] = {
139 &xls_usb_ehci_device, 142 &xls_usb_ehci_device,
@@ -182,10 +185,12 @@ int xls_platform_usb_init(void)
182 memres += 0x400; 185 memres += 0x400;
183 xls_usb_ohci_device_0.resource[0].start = memres; 186 xls_usb_ohci_device_0.resource[0].start = memres;
184 xls_usb_ohci_device_0.resource[0].end = memres + 0x400 - 1; 187 xls_usb_ohci_device_0.resource[0].end = memres + 0x400 - 1;
188 xls_usb_ohci_device_0.dev.platform_data = &xls_usb_ohci_pdata;
185 189
186 memres += 0x400; 190 memres += 0x400;
187 xls_usb_ohci_device_1.resource[0].start = memres; 191 xls_usb_ohci_device_1.resource[0].start = memres;
188 xls_usb_ohci_device_1.resource[0].end = memres + 0x400 - 1; 192 xls_usb_ohci_device_1.resource[0].end = memres + 0x400 - 1;
193 xls_usb_ohci_device_1.dev.platform_data = &xls_usb_ohci_pdata;
189 194
190 return platform_add_devices(xls_platform_devices, 195 return platform_add_devices(xls_platform_devices,
191 ARRAY_SIZE(xls_platform_devices)); 196 ARRAY_SIZE(xls_platform_devices));