1 --- a/drivers/net/wireless/ath/ath9k/ahb.c
2 +++ b/drivers/net/wireless/ath/ath9k/ahb.c
4 #include <linux/ath9k_platform.h>
7 +const struct platform_device_id ath9k_platform_id_table[] = {
10 + .driver_data = AR5416_AR9100_DEVID,
15 /* return bus cachesize in 4B word units */
16 static void ath_ahb_read_cachesize(struct ath_common *common, int *csz)
18 @@ -57,6 +65,7 @@ static int ath_ahb_probe(struct platform
20 struct ieee80211_hw *hw;
22 + const struct platform_device_id *id = platform_get_device_id(pdev);
26 @@ -116,7 +125,7 @@ static int ath_ahb_probe(struct platform
30 - ret = ath9k_init_device(AR5416_AR9100_DEVID, sc, 0x0, &ath_ahb_bus_ops);
31 + ret = ath9k_init_device(id->driver_data, sc, 0x0, &ath_ahb_bus_ops);
33 dev_err(&pdev->dev, "failed to initialize device\n");
35 @@ -165,8 +174,11 @@ static struct platform_driver ath_ahb_dr
39 + .id_table = ath9k_platform_id_table,
42 +MODULE_DEVICE_TABLE(platform, ath9k_platform_id_table);
44 int ath_ahb_init(void)
46 return platform_driver_register(&ath_ahb_driver);