summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-20 18:14:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-20 18:14:35 +0000
commit970252faf84b05f3e9abd5c401e13a9c625bfd92 (patch)
tree401b89fb3739f7cee09c51ce1bd45eb32498f7a5 /package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch
parent79829783916d443ca560857b922168be04785cea (diff)
downloadmaster-31e0f0ae-970252faf84b05f3e9abd5c401e13a9c625bfd92.tar.gz
master-31e0f0ae-970252faf84b05f3e9abd5c401e13a9c625bfd92.tar.bz2
master-31e0f0ae-970252faf84b05f3e9abd5c401e13a9c625bfd92.zip
mac80211: update to wireless-testing 2011-04-19, contains several beacon related fixes for ath9k
SVN-Revision: 26744
Diffstat (limited to 'package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch')
-rw-r--r--package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch b/package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch
deleted file mode 100644
index 3a8da5b77a..0000000000
--- a/package/mac80211/patches/560-ath9k-register-id-table-for-platform-device.patch
+++ /dev/null
@@ -1,46 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ahb.c
-+++ b/drivers/net/wireless/ath/ath9k/ahb.c
-@@ -21,6 +21,14 @@
- #include <linux/ath9k_platform.h>
- #include "ath9k.h"
-
-+const struct platform_device_id ath9k_platform_id_table[] = {
-+ {
-+ .name = "ath9k",
-+ .driver_data = AR5416_AR9100_DEVID,
-+ },
-+ {},
-+};
-+
- /* return bus cachesize in 4B word units */
- static void ath_ahb_read_cachesize(struct ath_common *common, int *csz)
- {
-@@ -57,6 +65,7 @@ static int ath_ahb_probe(struct platform
- struct ath_softc *sc;
- struct ieee80211_hw *hw;
- struct resource *res;
-+ const struct platform_device_id *id = platform_get_device_id(pdev);
- int irq;
- int ret = 0;
- struct ath_hw *ah;
-@@ -116,7 +125,7 @@ static int ath_ahb_probe(struct platform
- goto err_free_hw;
- }
-
-- ret = ath9k_init_device(AR5416_AR9100_DEVID, sc, 0x0, &ath_ahb_bus_ops);
-+ ret = ath9k_init_device(id->driver_data, sc, 0x0, &ath_ahb_bus_ops);
- if (ret) {
- dev_err(&pdev->dev, "failed to initialize device\n");
- goto err_irq;
-@@ -165,8 +174,11 @@ static struct platform_driver ath_ahb_dr
- .name = "ath9k",
- .owner = THIS_MODULE,
- },
-+ .id_table = ath9k_platform_id_table,
- };
-
-+MODULE_DEVICE_TABLE(platform, ath9k_platform_id_table);
-+
- int ath_ahb_init(void)
- {
- return platform_driver_register(&ath_ahb_driver);