diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-25 02:46:18 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 05:17:16 -0400 |
commit | 756380e04276c9099f41716d279d24e5847b1030 (patch) | |
tree | 8444ef061b4cd93e3188540f037ed32afffa6ed5 | |
parent | 67d0b500ebbe78e2ca50036721fef530dfd3d9c8 (diff) |
usb: gadget: pxa27x_udc: drop ARCH_PXA dependency
This driver can compile in any arch quite
easily by just removing a few headers and
dropping cpu_is_* check from module_init.
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/Kconfig | 1 | ||||
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.c | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 5a0c541daf89..50586fffa9fb 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -258,7 +258,6 @@ config USB_RENESAS_USBHS_UDC | |||
258 | 258 | ||
259 | config USB_PXA27X | 259 | config USB_PXA27X |
260 | tristate "PXA 27x" | 260 | tristate "PXA 27x" |
261 | depends on ARCH_PXA && (PXA27x || PXA3xx) | ||
262 | select USB_OTG_UTILS | 261 | select USB_OTG_UTILS |
263 | help | 262 | help |
264 | Intel's PXA 27x series XScale ARM v5TE processors include | 263 | Intel's PXA 27x series XScale ARM v5TE processors include |
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c index 07ce1477f911..def73f2aa18b 100644 --- a/drivers/usb/gadget/pxa27x_udc.c +++ b/drivers/usb/gadget/pxa27x_udc.c | |||
@@ -24,14 +24,12 @@ | |||
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/prefetch.h> | 26 | #include <linux/prefetch.h> |
27 | 27 | #include <linux/byteorder/generic.h> | |
28 | #include <asm/byteorder.h> | 28 | #include <linux/platform_data/pxa2xx_udc.h> |
29 | #include <mach/hardware.h> | ||
30 | 29 | ||
31 | #include <linux/usb.h> | 30 | #include <linux/usb.h> |
32 | #include <linux/usb/ch9.h> | 31 | #include <linux/usb/ch9.h> |
33 | #include <linux/usb/gadget.h> | 32 | #include <linux/usb/gadget.h> |
34 | #include <mach/udc.h> | ||
35 | 33 | ||
36 | #include "pxa27x_udc.h" | 34 | #include "pxa27x_udc.h" |
37 | 35 | ||
@@ -2624,15 +2622,10 @@ static struct platform_driver udc_driver = { | |||
2624 | 2622 | ||
2625 | static int __init udc_init(void) | 2623 | static int __init udc_init(void) |
2626 | { | 2624 | { |
2627 | if (!cpu_is_pxa27x() && !cpu_is_pxa3xx()) | ||
2628 | return -ENODEV; | ||
2629 | |||
2630 | printk(KERN_INFO "%s: version %s\n", driver_name, DRIVER_VERSION); | ||
2631 | return platform_driver_probe(&udc_driver, pxa_udc_probe); | 2625 | return platform_driver_probe(&udc_driver, pxa_udc_probe); |
2632 | } | 2626 | } |
2633 | module_init(udc_init); | 2627 | module_init(udc_init); |
2634 | 2628 | ||
2635 | |||
2636 | static void __exit udc_exit(void) | 2629 | static void __exit udc_exit(void) |
2637 | { | 2630 | { |
2638 | platform_driver_unregister(&udc_driver); | 2631 | platform_driver_unregister(&udc_driver); |