|
@@ -14,16 +14,16 @@
|
|
#include "../core/hcd.h"
|
|
#include "../core/hcd.h"
|
|
#include "isp1760-hcd.h"
|
|
#include "isp1760-hcd.h"
|
|
|
|
|
|
-#ifdef CONFIG_USB_ISP1760_OF
|
|
|
|
|
|
+#ifdef CONFIG_PPC_OF
|
|
#include <linux/of.h>
|
|
#include <linux/of.h>
|
|
#include <linux/of_platform.h>
|
|
#include <linux/of_platform.h>
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_USB_ISP1760_PCI
|
|
|
|
|
|
+#ifdef CONFIG_PCI
|
|
#include <linux/pci.h>
|
|
#include <linux/pci.h>
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_USB_ISP1760_OF
|
|
|
|
|
|
+#ifdef CONFIG_PPC_OF
|
|
static int of_isp1760_probe(struct of_device *dev,
|
|
static int of_isp1760_probe(struct of_device *dev,
|
|
const struct of_device_id *match)
|
|
const struct of_device_id *match)
|
|
{
|
|
{
|
|
@@ -128,7 +128,7 @@ static struct of_platform_driver isp1760_of_driver = {
|
|
};
|
|
};
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_USB_ISP1760_PCI
|
|
|
|
|
|
+#ifdef CONFIG_PCI
|
|
static u32 nxp_pci_io_base;
|
|
static u32 nxp_pci_io_base;
|
|
static u32 iolength;
|
|
static u32 iolength;
|
|
static u32 pci_mem_phy0;
|
|
static u32 pci_mem_phy0;
|
|
@@ -288,28 +288,28 @@ static struct pci_driver isp1761_pci_driver = {
|
|
|
|
|
|
static int __init isp1760_init(void)
|
|
static int __init isp1760_init(void)
|
|
{
|
|
{
|
|
- int ret = -ENODEV;
|
|
|
|
|
|
+ int ret;
|
|
|
|
|
|
init_kmem_once();
|
|
init_kmem_once();
|
|
|
|
|
|
-#ifdef CONFIG_USB_ISP1760_OF
|
|
|
|
|
|
+#ifdef CONFIG_PPC_OF
|
|
ret = of_register_platform_driver(&isp1760_of_driver);
|
|
ret = of_register_platform_driver(&isp1760_of_driver);
|
|
if (ret) {
|
|
if (ret) {
|
|
deinit_kmem_cache();
|
|
deinit_kmem_cache();
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
-#ifdef CONFIG_USB_ISP1760_PCI
|
|
|
|
|
|
+#ifdef CONFIG_PCI
|
|
ret = pci_register_driver(&isp1761_pci_driver);
|
|
ret = pci_register_driver(&isp1761_pci_driver);
|
|
if (ret)
|
|
if (ret)
|
|
goto unreg_of;
|
|
goto unreg_of;
|
|
#endif
|
|
#endif
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
-#ifdef CONFIG_USB_ISP1760_PCI
|
|
|
|
|
|
+#ifdef CONFIG_PCI
|
|
unreg_of:
|
|
unreg_of:
|
|
#endif
|
|
#endif
|
|
-#ifdef CONFIG_USB_ISP1760_OF
|
|
|
|
|
|
+#ifdef CONFIG_PPC_OF
|
|
of_unregister_platform_driver(&isp1760_of_driver);
|
|
of_unregister_platform_driver(&isp1760_of_driver);
|
|
#endif
|
|
#endif
|
|
deinit_kmem_cache();
|
|
deinit_kmem_cache();
|
|
@@ -319,10 +319,10 @@ module_init(isp1760_init);
|
|
|
|
|
|
static void __exit isp1760_exit(void)
|
|
static void __exit isp1760_exit(void)
|
|
{
|
|
{
|
|
-#ifdef CONFIG_USB_ISP1760_OF
|
|
|
|
|
|
+#ifdef CONFIG_PPC_OF
|
|
of_unregister_platform_driver(&isp1760_of_driver);
|
|
of_unregister_platform_driver(&isp1760_of_driver);
|
|
#endif
|
|
#endif
|
|
-#ifdef CONFIG_USB_ISP1760_PCI
|
|
|
|
|
|
+#ifdef CONFIG_PCI
|
|
pci_unregister_driver(&isp1761_pci_driver);
|
|
pci_unregister_driver(&isp1761_pci_driver);
|
|
#endif
|
|
#endif
|
|
deinit_kmem_cache();
|
|
deinit_kmem_cache();
|