diff options
author | Joachim Foerster <joachim.foerster@missinglinkelectronics.com> | 2011-10-10 12:06:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-18 16:42:13 -0400 |
commit | 8f5d621543cb064d2989fc223d3c2bc61a43981e (patch) | |
tree | 953bda9d716594cc6ed1ba1359184b6055fccb9a /drivers/usb/host | |
parent | 3687f641307eeff6f7fe31a88dc39db88e89238b (diff) |
usb/isp1760: Let OF bindings depend on general CONFIG_OF instead of PPC_OF .
To be able to use the driver on other OF-aware architectures, too.
And add necessary OF related #includes to fix compilation error.
Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/isp1760-if.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index d2f6b2dd7405..791792db6e12 100644 --- a/drivers/usb/host/isp1760-if.c +++ b/drivers/usb/host/isp1760-if.c | |||
@@ -17,16 +17,18 @@ | |||
17 | 17 | ||
18 | #include "isp1760-hcd.h" | 18 | #include "isp1760-hcd.h" |
19 | 19 | ||
20 | #ifdef CONFIG_PPC_OF | 20 | #ifdef CONFIG_OF |
21 | #include <linux/of.h> | 21 | #include <linux/of.h> |
22 | #include <linux/of_platform.h> | 22 | #include <linux/of_platform.h> |
23 | #include <linux/of_address.h> | ||
24 | #include <linux/of_irq.h> | ||
23 | #endif | 25 | #endif |
24 | 26 | ||
25 | #ifdef CONFIG_PCI | 27 | #ifdef CONFIG_PCI |
26 | #include <linux/pci.h> | 28 | #include <linux/pci.h> |
27 | #endif | 29 | #endif |
28 | 30 | ||
29 | #ifdef CONFIG_PPC_OF | 31 | #ifdef CONFIG_OF |
30 | static int of_isp1760_probe(struct platform_device *dev) | 32 | static int of_isp1760_probe(struct platform_device *dev) |
31 | { | 33 | { |
32 | struct usb_hcd *hcd; | 34 | struct usb_hcd *hcd; |
@@ -396,7 +398,7 @@ static int __init isp1760_init(void) | |||
396 | ret = platform_driver_register(&isp1760_plat_driver); | 398 | ret = platform_driver_register(&isp1760_plat_driver); |
397 | if (!ret) | 399 | if (!ret) |
398 | any_ret = 0; | 400 | any_ret = 0; |
399 | #ifdef CONFIG_PPC_OF | 401 | #ifdef CONFIG_OF |
400 | ret = platform_driver_register(&isp1760_of_driver); | 402 | ret = platform_driver_register(&isp1760_of_driver); |
401 | if (!ret) | 403 | if (!ret) |
402 | any_ret = 0; | 404 | any_ret = 0; |
@@ -416,7 +418,7 @@ module_init(isp1760_init); | |||
416 | static void __exit isp1760_exit(void) | 418 | static void __exit isp1760_exit(void) |
417 | { | 419 | { |
418 | platform_driver_unregister(&isp1760_plat_driver); | 420 | platform_driver_unregister(&isp1760_plat_driver); |
419 | #ifdef CONFIG_PPC_OF | 421 | #ifdef CONFIG_OF |
420 | platform_driver_unregister(&isp1760_of_driver); | 422 | platform_driver_unregister(&isp1760_of_driver); |
421 | #endif | 423 | #endif |
422 | #ifdef CONFIG_PCI | 424 | #ifdef CONFIG_PCI |