7a87cb6936bd73d13ee72cb55a6f99628dc8744a
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 613-rt2x00-fixup-symbols.patch
1 Index: compat-wireless-2013-02-22/drivers/net/wireless/rt2x00/rt2800pci.c
2 ===================================================================
3 --- compat-wireless-2013-02-22.orig/drivers/net/wireless/rt2x00/rt2800pci.c 2013-03-31 19:25:51.185815171 +0200
4 +++ compat-wireless-2013-02-22/drivers/net/wireless/rt2x00/rt2800pci.c 2013-03-31 19:27:59.805818237 +0200
5 @@ -1179,7 +1179,7 @@
6 #endif /* CONFIG_PCI */
7 MODULE_LICENSE("GPL");
8
9 -#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
10 +#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
11 static int rt2800soc_probe(struct platform_device *pdev)
12 {
13 return rt2x00soc_probe(pdev, &rt2800pci_ops);
14 @@ -1203,7 +1203,7 @@
15 .suspend = rt2x00soc_suspend,
16 .resume = rt2x00soc_resume,
17 };
18 -#endif /* CONFIG_RALINK_RT288X || CONFIG_RALINK_RT305X */
19 +#endif /* CONFIG_SOC_RT288X || CONFIG_SOC_RT305X */
20
21 #ifdef CONFIG_PCI
22 static int rt2800pci_probe(struct pci_dev *pci_dev,
23 @@ -1226,7 +1226,7 @@
24 {
25 int ret = 0;
26
27 -#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
28 +#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
29 ret = platform_driver_register(&rt2800soc_driver);
30 if (ret)
31 return ret;
32 @@ -1234,7 +1234,7 @@
33 #ifdef CONFIG_PCI
34 ret = pci_register_driver(&rt2800pci_driver);
35 if (ret) {
36 -#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
37 +#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
38 platform_driver_unregister(&rt2800soc_driver);
39 #endif
40 return ret;
41 @@ -1249,7 +1249,7 @@
42 #ifdef CONFIG_PCI
43 pci_unregister_driver(&rt2800pci_driver);
44 #endif
45 -#if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X)
46 +#if defined(CONFIG_SOC_RT288X) || defined(CONFIG_SOC_RT305X)
47 platform_driver_unregister(&rt2800soc_driver);
48 #endif
49 }