return err;
}
+#if 1
+/* Murata debug: this function is re-worked because "wifi_plat_data" is NULL. */
+/* Need to investigate how this pointer/data is being passed into probe function. */
+/* "wifi_plat_data" used to be "wifi_ctrl". */
+/* All this code is done for only one reason -- calling mmc_detect_change() in /drivers/mmc/core/core.c. */
+extern void wifi_card_detect(void);
+int wifi_platform_bus_enumerate(wifi_adapter_info_t *adapter, bool device_present)
+{
+ int err = 0;
+ struct wifi_platform_data *plat_data;
+
+ if (!adapter) {
+ pr_err("!!!! %s: failed! adapter variable is NULL!!!!!\n", __FUNCTION__);
+ return -EINVAL;
+ }
+
+ DHD_ERROR(("%s device present %d\n", __FUNCTION__, device_present));
+
+ if (!adapter->wifi_plat_data) {
+ wifi_card_detect(); /* hook for card_detect */
+ } else {
+ plat_data = adapter->wifi_plat_data;
+ if (plat_data->set_carddetect)
+ err = plat_data->set_carddetect(device_present);
+ }
+
+ return 0; /* force success status returned */
+}
+
+#else
+
int wifi_platform_bus_enumerate(wifi_adapter_info_t *adapter, bool device_present)
{
int err = 0;
return err;
}
+#endif
int wifi_platform_get_mac_addr(wifi_adapter_info_t *adapter, unsigned char *buf)
{