mmc: core:
authorlintao <lintao@rock-chips.com>
Fri, 21 Mar 2014 06:01:03 +0000 (14:01 +0800)
committerlintao <lintao@rock-chips.com>
Fri, 21 Mar 2014 06:01:03 +0000 (14:01 +0800)
    Fix mmc_host_rescan triger kernel panic if none SDIO controller configured.
host->class_dev will be NULL pointer when this case, just workaround it.

drivers/mmc/core/host.c

index 8610b36fee61b6225176f52ed5129e2d08c4c6f6..7767f14e359baea7ecb2432f93495f20418ed90f 100755 (executable)
@@ -610,11 +610,10 @@ int mmc_host_rescan(struct mmc_host *host)
         if(!host)
             host = primary_sdio_host;
         else 
-            printk("mmc_host_rescan pass in host from argument!\n");
+            printk("%s: mmc_host_rescan pass in host from argument!\n", mmc_hostname(host));
     }
     else{
-        printk("%s: host isn't  initialization successfully.\n",
-                mmc_hostname(host));
+        printk("sdio: host isn't  initialization successfully.\n");                    
         return -ENOMEDIUM;
     }