lkml.org 
[lkml]   [2007]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 30/47] dasd: fix return value of dasd_generic_probe()
    From: Stefan Haberland <stefan.haberland@de.ibm.com>

    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 | 7 ++++---
    1 file changed, 4 insertions(+), 3 deletions(-)

    Index: quilt-2.6/drivers/s390/block/dasd.c
    ===================================================================
    --- quilt-2.6.orig/drivers/s390/block/dasd.c
    +++ quilt-2.6/drivers/s390/block/dasd.c
    @@ -1969,9 +1969,10 @@ dasd_generic_probe (struct ccw_device *c
    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;
    }

    /*
    --
    blue skies,
    Martin.

    "Reality continues to ruin my life." - Calvin.



    \
     
     \ /
      Last update: 2007-12-20 16:39    [W:0.082 / U:29.888 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site