Update print statment to give the correct info when WLAN fails to boot
Signed-off-by: Sangwook Lee sangwook.lee@linaro.org --- arch/arm/mach-exynos/mach-origen.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 7ca9e80..de06601 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -524,6 +524,7 @@ static void (*wifi_status_cb)(struct platform_device *, int state); static int origen_wifi_status_register(void (*notify_func) (struct platform_device *, int state)) { + /* Assign sdhci_s3c_notify_change to wifi_status_cb */ if (!notify_func) return -EAGAIN; else @@ -569,8 +570,11 @@ static void origen_wlan_setup_power(bool val) */ static int origen_wifi_set_detect(bool val) { + if (!wifi_status_cb) { - printk(KERN_WARNING "WLAN: Nobody to notify\n"); + pr_warning("ORIGEN: WLAN: No callback \n" + "ORIGEN: WLAN: MMC should boot earlier than net \n"); + return -EAGAIN; } if (true == val) {