[S390] dasd: fix return value of dasd_generic_probe()
authorStefan Haberland <stefan.haberland@de.ibm.com>
Sat, 26 Jan 2008 13:11:08 +0000 (14:11 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sat, 26 Jan 2008 13:11:17 +0000 (14:11 +0100)
Using the return value of ccw_device_set_online as return value for
dasd_generic_probe() causes the DASD to fail setting online

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c

index e6bfce690ca338aa1ce7187668ac5b2213ec85a7..da4fe1ecef9eb5ca500631a9dcd05158d067a63b 100644 (file)
@@ -1969,9 +1969,10 @@ dasd_generic_probe (struct ccw_device *cdev,
                ret = ccw_device_set_online(cdev);
        if (ret)
                printk(KERN_WARNING
-                      "dasd_generic_probe: could not initially online "
-                      "ccw-device %s\n", cdev->dev.bus_id);
-       return ret;
+                      "dasd_generic_probe: could not initially "
+                      "online ccw-device %s; return code: %d\n",
+                      cdev->dev.bus_id, ret);
+       return 0;
 }
 
 /*