int __init whistler_sdhci_init(void) { int ret; tegra_gpio_enable(WHISTLER_EXT_SDCARD_DETECT); platform_device_register(&tegra_sdhci_device3); platform_device_register(&tegra_sdhci_device2); platform_device_register(&tegra_sdhci_device1); whistler_wifi_init(); return 0; }
int __init whistler_sdhci_init(void) { /* [ECID:000000] ZTEBSP wangjianping start 20120214 add SD card driver */ tegra_gpio_enable(WHISTLER_EXT_SDCARD_DETECT); /* [ECID:000000] ZTEBSP wangjianping end 20120214 add SD card driver */ platform_device_register(&tegra_sdhci_device3); platform_device_register(&tegra_sdhci_device2); //[ECID 000000] fanjiankang modified begin 2012.2.9 #if 0 platform_device_register(&tegra_sdhci_device1); #else platform_device_register(&tegra_sdhci_device0); #endif //[ECID 000000] fanjiankang modified end 2012.2.9 whistler_wifi_init(); return 0; }
int __init whistler_sdhci_init(void) { int ret; ret = gpio_request(WHISTLER_EXT_SDCARD_DETECT, "card_detect"); if (ret < 0) { tegra_sdhci_platform_data2.cd_gpio = -1; pr_err("card_detect gpio not found\n"); } else { tegra_gpio_enable(WHISTLER_EXT_SDCARD_DETECT); gpio_direction_input(WHISTLER_EXT_SDCARD_DETECT); } platform_device_register(&tegra_sdhci_device3); platform_device_register(&tegra_sdhci_device2); platform_device_register(&tegra_sdhci_device1); platform_device_register(&tegra_sdhci_device0); whistler_wifi_init(); return 0; }