summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch
blob: d0c20eb01cf6cf387c7b67e27690bf3442656e6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -1000,6 +1000,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",
@@ -1008,6 +1009,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,
@@ -1016,7 +1018,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)