bcmdhd wifi:update driver 1.201.59.5
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rkwifi / bcmdhd / dhd_linux_platdev.c
index 596dc72301b41731515ba25ab97ed1073f0bcbe9..f8efbc402876c3408c32ea9a4db9992c5dc83605 100755 (executable)
@@ -53,7 +53,9 @@ extern struct wifi_platform_data dhd_wlan_control;
 #else
 static bool dts_enabled = FALSE;
 struct resource dhd_wlan_resources = {0};
+#ifdef CUSTOMER_HW
 struct wifi_platform_data dhd_wlan_control = {0};
+#endif
 #endif /* !defind(DHD_OF_SUPPORT) */
 #endif /* !defind(CONFIG_DTS) */
 
@@ -432,8 +434,8 @@ static int wifi_ctrlfunc_register_drv(void)
 
 #if !defined(CONFIG_DTS)
        if (dts_enabled) {
-               adapter->wifi_plat_data = (void *)&dhd_wlan_control;
 #ifdef CUSTOMER_HW
+               adapter->wifi_plat_data = (void *)&dhd_wlan_control;
                bcm_wlan_set_plat_data();
 #ifdef CUSTOMER_OOB
                adapter->irq_num = bcm_wlan_get_oob_irq();