diff options
| -rw-r--r-- | drivers/usb/host/isp1760-if.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index a7dc1e1d45f2..2ac4ac2e4ef9 100644 --- a/drivers/usb/host/isp1760-if.c +++ b/drivers/usb/host/isp1760-if.c | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | #include "isp1760-hcd.h" | 19 | #include "isp1760-hcd.h" |
| 20 | 20 | ||
| 21 | #ifdef CONFIG_OF | 21 | #if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ) |
| 22 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
| 23 | #include <linux/of.h> | 23 | #include <linux/of.h> |
| 24 | #include <linux/of_platform.h> | 24 | #include <linux/of_platform.h> |
| @@ -31,7 +31,7 @@ | |||
| 31 | #include <linux/pci.h> | 31 | #include <linux/pci.h> |
| 32 | #endif | 32 | #endif |
| 33 | 33 | ||
| 34 | #ifdef CONFIG_OF | 34 | #if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ) |
| 35 | struct isp1760 { | 35 | struct isp1760 { |
| 36 | struct usb_hcd *hcd; | 36 | struct usb_hcd *hcd; |
| 37 | int rst_gpio; | 37 | int rst_gpio; |
| @@ -437,7 +437,7 @@ static int __init isp1760_init(void) | |||
| 437 | ret = platform_driver_register(&isp1760_plat_driver); | 437 | ret = platform_driver_register(&isp1760_plat_driver); |
| 438 | if (!ret) | 438 | if (!ret) |
| 439 | any_ret = 0; | 439 | any_ret = 0; |
| 440 | #ifdef CONFIG_OF | 440 | #if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ) |
| 441 | ret = platform_driver_register(&isp1760_of_driver); | 441 | ret = platform_driver_register(&isp1760_of_driver); |
| 442 | if (!ret) | 442 | if (!ret) |
| 443 | any_ret = 0; | 443 | any_ret = 0; |
| @@ -457,7 +457,7 @@ module_init(isp1760_init); | |||
| 457 | static void __exit isp1760_exit(void) | 457 | static void __exit isp1760_exit(void) |
| 458 | { | 458 | { |
| 459 | platform_driver_unregister(&isp1760_plat_driver); | 459 | platform_driver_unregister(&isp1760_plat_driver); |
| 460 | #ifdef CONFIG_OF | 460 | #if defined(CONFIG_OF) && defined(CONFIG_OF_IRQ) |
| 461 | platform_driver_unregister(&isp1760_of_driver); | 461 | platform_driver_unregister(&isp1760_of_driver); |
| 462 | #endif | 462 | #endif |
| 463 | #ifdef CONFIG_PCI | 463 | #ifdef CONFIG_PCI |
