diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-10-26 00:40:32 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-10-26 12:10:48 +0200 |
commit | b1ddcbf5c01e115bd71668d5bfed4bb144c0aa7f (patch) | |
tree | b5c8ad6fefd8bdae361da72703416d2a9ebb073d | |
parent | 79c4358ea2a095aa3b26539ca775cb697fc81a19 (diff) |
backports: remove struct platform_device_id from wcn36xx
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch b/patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch new file mode 100644 index 00000000..a6f0c6b6 --- /dev/null +++ b/patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch @@ -0,0 +1,28 @@ +--- a/drivers/net/wireless/ath/wcn36xx/main.c ++++ b/drivers/net/wireless/ath/wcn36xx/main.c +@@ -999,6 +999,7 @@ static int wcn36xx_remove(struct platfor + + return 0; + } ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) + static const struct platform_device_id wcn36xx_platform_id_table[] = { + { + .name = "wcn36xx", +@@ -1007,6 +1008,7 @@ static const struct platform_device_id w + {} + }; + MODULE_DEVICE_TABLE(platform, wcn36xx_platform_id_table); ++#endif + + static struct platform_driver wcn36xx_driver = { + .probe = wcn36xx_probe, +@@ -1015,7 +1017,9 @@ static struct platform_driver wcn36xx_dr + .name = "wcn36xx", + .owner = THIS_MODULE, + }, ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) + .id_table = wcn36xx_platform_id_table, ++#endif + }; + + static int __init wcn36xx_init(void) |