backports: remove struct platform_device_id from wcn36xx
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 25 Oct 2013 22:40:32 +0000 (00:40 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 26 Oct 2013 10:10:48 +0000 (12:10 +0200)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch [new file with mode: 0644]

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 (file)
index 0000000..a6f0c6b
--- /dev/null
@@ -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)