2013-04-07 22:05:36 +00:00
|
|
|
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
|
|
|
|
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
|
|
|
|
@@ -1179,7 +1179,7 @@ MODULE_DEVICE_TABLE(pci, rt2800pci_devic
|
2013-04-03 10:00:29 +00:00
|
|
|
#endif /* CONFIG_PCI */
|
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
|
|
|
|
-#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
|
|
|
|
+#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
|
|
|
|
static int rt2800soc_probe(struct platform_device *pdev)
|
|
|
|
{
|
|
|
|
return rt2x00soc_probe(pdev, &rt2800pci_ops);
|
2013-04-07 22:05:36 +00:00
|
|
|
@@ -1203,7 +1203,7 @@ static struct platform_driver rt2800soc_
|
2013-04-03 10:00:29 +00:00
|
|
|
.suspend = rt2x00soc_suspend,
|
|
|
|
.resume = rt2x00soc_resume,
|
|
|
|
};
|
|
|
|
-#endif /* CONFIG_RALINK_RT288X || CONFIG_RALINK_RT305X */
|
|
|
|
+#endif /* CONFIG_SOC_RT288X || CONFIG_SOC_RT305X */
|
|
|
|
|
|
|
|
#ifdef CONFIG_PCI
|
|
|
|
static int rt2800pci_probe(struct pci_dev *pci_dev,
|
2013-04-07 22:05:36 +00:00
|
|
|
@@ -1226,7 +1226,7 @@ static int __init rt2800pci_init(void)
|
2013-04-03 10:00:29 +00:00
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
|
|
|
|
-#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
|
|
|
|
+#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
|
|
|
|
ret = platform_driver_register(&rt2800soc_driver);
|
|
|
|
if (ret)
|
|
|
|
return ret;
|
2013-04-07 22:05:36 +00:00
|
|
|
@@ -1234,7 +1234,7 @@ static int __init rt2800pci_init(void)
|
2013-04-03 10:00:29 +00:00
|
|
|
#ifdef CONFIG_PCI
|
|
|
|
ret = pci_register_driver(&rt2800pci_driver);
|
|
|
|
if (ret) {
|
|
|
|
-#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
|
|
|
|
+#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
|
|
|
|
platform_driver_unregister(&rt2800soc_driver);
|
|
|
|
#endif
|
|
|
|
return ret;
|
2013-04-07 22:05:36 +00:00
|
|
|
@@ -1249,7 +1249,7 @@ static void __exit rt2800pci_exit(void)
|
2013-04-03 10:00:29 +00:00
|
|
|
#ifdef CONFIG_PCI
|
|
|
|
pci_unregister_driver(&rt2800pci_driver);
|
|
|
|
#endif
|
|
|
|
-#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
|
|
|
|
+#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
|
|
|
|
platform_driver_unregister(&rt2800soc_driver);
|
|
|
|
#endif
|
|
|
|
}
|