diff options
author | Stefan Haberland <stefan.haberland@de.ibm.com> | 2008-01-26 14:11:08 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-01-26 14:11:17 +0100 |
commit | de3e0da1270bccb046885fbf1baa9140721de7e0 (patch) | |
tree | 169d085e6d19905a55fb3005b5b7e761eb4d6157 /drivers/s390 | |
parent | 3f5615e012b4593943bbc2a6c3ce150bb33e1966 (diff) | |
download | linux-de3e0da1270bccb046885fbf1baa9140721de7e0.tar.gz linux-de3e0da1270bccb046885fbf1baa9140721de7e0.tar.bz2 linux-de3e0da1270bccb046885fbf1baa9140721de7e0.zip |
[S390] dasd: fix return value of dasd_generic_probe()
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index e6bfce690ca3..da4fe1ecef9e 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c @@ -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; } /* |