Commit 6531ab0c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman

[PATCH] use second arg to scsi_add_host in usb storage

That way we don't need the addition scsi_set_device call.
parent ebf2d924
......@@ -886,11 +886,8 @@ static int storage_probe(struct usb_interface *intf,
/* set the hostdata to prepare for scanning */
us->host->hostdata[0] = (unsigned long)us;
/* associate this host with our interface */
scsi_set_device(us->host, &intf->dev);
/* now add the host */
result = scsi_add_host(us->host, NULL);
result = scsi_add_host(us->host, &intf->dev);
if (result) {
printk(KERN_WARNING USB_STORAGE
"Unable to add the scsi host\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment