From: Oliver Neukum Date: Wed, 28 Nov 2007 22:50:02 +0000 (-0800) Subject: USB: make the microtek driver and HAL cooperate X-Git-Tag: v2.6.22.15~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ce253a31e0208733fc8a3c40e09dea7308766c;p=thirdparty%2Fkernel%2Fstable.git USB: make the microtek driver and HAL cooperate patch 5cf1973a44bd298e3cfce6f6af8faa8c9d0a6d55 in mainline to make HAL like the microtek driver's devices the parent must be correctly set. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index 51bd80d2b8ccb..3acfd1a0107fc 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c @@ -823,7 +823,7 @@ static int mts_usb_probe(struct usb_interface *intf, goto out_kfree2; new_desc->host->hostdata[0] = (unsigned long)new_desc; - if (scsi_add_host(new_desc->host, NULL)) { + if (scsi_add_host(new_desc->host, &dev->dev)) { err_retval = -EIO; goto out_host_put; }