aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/host/isp1760-if.c10
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
30static int of_isp1760_probe(struct platform_device *dev) 32static 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);
416static void __exit isp1760_exit(void) 418static 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