--- zzzz-none-000/linux-3.10.107/drivers/net/wireless/ti/wilink_platform_data.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/wireless/ti/wilink_platform_data.c 2021-02-04 17:41:59.000000000 +0000 @@ -23,27 +23,27 @@ #include #include -static struct wl12xx_platform_data *platform_data; +static struct wl1251_platform_data *wl1251_platform_data; -int __init wl12xx_set_platform_data(const struct wl12xx_platform_data *data) +int __init wl1251_set_platform_data(const struct wl1251_platform_data *data) { - if (platform_data) + if (wl1251_platform_data) return -EBUSY; if (!data) return -EINVAL; - platform_data = kmemdup(data, sizeof(*data), GFP_KERNEL); - if (!platform_data) + wl1251_platform_data = kmemdup(data, sizeof(*data), GFP_KERNEL); + if (!wl1251_platform_data) return -ENOMEM; return 0; } -struct wl12xx_platform_data *wl12xx_get_platform_data(void) +struct wl1251_platform_data *wl1251_get_platform_data(void) { - if (!platform_data) + if (!wl1251_platform_data) return ERR_PTR(-ENODEV); - return platform_data; + return wl1251_platform_data; } -EXPORT_SYMBOL(wl12xx_get_platform_data); +EXPORT_SYMBOL(wl1251_get_platform_data);