Commit 8f5d6215 authored by Joachim Foerster's avatar Joachim Foerster Committed by Greg Kroah-Hartman

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: default avatarJoachim Foerster <joachim.foerster@missinglinkelectronics.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3687f641
...@@ -17,16 +17,18 @@ ...@@ -17,16 +17,18 @@
#include "isp1760-hcd.h" #include "isp1760-hcd.h"
#ifdef CONFIG_PPC_OF #ifdef CONFIG_OF
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#endif #endif
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
#include <linux/pci.h> #include <linux/pci.h>
#endif #endif
#ifdef CONFIG_PPC_OF #ifdef CONFIG_OF
static int of_isp1760_probe(struct platform_device *dev) static int of_isp1760_probe(struct platform_device *dev)
{ {
struct usb_hcd *hcd; struct usb_hcd *hcd;
...@@ -396,7 +398,7 @@ static int __init isp1760_init(void) ...@@ -396,7 +398,7 @@ static int __init isp1760_init(void)
ret = platform_driver_register(&isp1760_plat_driver); ret = platform_driver_register(&isp1760_plat_driver);
if (!ret) if (!ret)
any_ret = 0; any_ret = 0;
#ifdef CONFIG_PPC_OF #ifdef CONFIG_OF
ret = platform_driver_register(&isp1760_of_driver); ret = platform_driver_register(&isp1760_of_driver);
if (!ret) if (!ret)
any_ret = 0; any_ret = 0;
...@@ -416,7 +418,7 @@ module_init(isp1760_init); ...@@ -416,7 +418,7 @@ module_init(isp1760_init);
static void __exit isp1760_exit(void) static void __exit isp1760_exit(void)
{ {
platform_driver_unregister(&isp1760_plat_driver); platform_driver_unregister(&isp1760_plat_driver);
#ifdef CONFIG_PPC_OF #ifdef CONFIG_OF
platform_driver_unregister(&isp1760_of_driver); platform_driver_unregister(&isp1760_of_driver);
#endif #endif
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment