From b1ddcbf5c01e115bd71668d5bfed4bb144c0aa7f Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 26 Oct 2013 00:40:32 +0200 Subject: [PATCH] backports: remove struct platform_device_id from wcn36xx Signed-off-by: Hauke Mehrtens --- ...rivers_net_wireless_ath_wcn36xx_main.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 patches/collateral-evolutions/network/45-remove-platform-id-table/drivers_net_wireless_ath_wcn36xx_main.patch 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 000000000000..a6f0c6b6bdf5 --- /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) -- 2.30.2