diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-05-21 23:37:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 06:44:46 +0200 |
commit | be475d9027a07069407a19980d1a4fcb7b18b23c (patch) | |
tree | 7af3bcb99fb70d12c2c0f0b9c47e196560241eff /drivers/usb/storage/sierra_ms.c | |
parent | usb: musb: disable OTG AUTOIDLE only with omap3430 (diff) | |
download | linux-be475d9027a07069407a19980d1a4fcb7b18b23c.tar.xz linux-be475d9027a07069407a19980d1a4fcb7b18b23c.zip |
USB: usb-storage: fix return values from init functions
This patch (as1242) fixes the return values from the special
init functions in usb-storage. They are supposed to return 0 for
success, not USB_STOR_TRANSPORT_GOOD.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage/sierra_ms.c')
-rw-r--r-- | drivers/usb/storage/sierra_ms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/storage/sierra_ms.c b/drivers/usb/storage/sierra_ms.c index 4359a2cb42df..4395c4100ec2 100644 --- a/drivers/usb/storage/sierra_ms.c +++ b/drivers/usb/storage/sierra_ms.c @@ -202,6 +202,6 @@ int sierra_ms_init(struct us_data *us) complete: result = device_create_file(&us->pusb_intf->dev, &dev_attr_truinst); - return USB_STOR_TRANSPORT_GOOD; + return 0; } |