]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: make the microtek driver and HAL cooperate
authorOliver Neukum <oliver@neukum.org>
Wed, 28 Nov 2007 22:50:02 +0000 (14:50 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:50:53 +0000 (09:50 -0800)
patch 5cf1973a44bd298e3cfce6f6af8faa8c9d0a6d55 in mainline

to make HAL like the microtek driver's devices the parent must be
correctly set.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/image/microtek.c

index 768b2c11a2311d6efa8237e7868c4c642d8998dc..af0461e022a5bbf5c260e082dc8eb5954c5ee71a 100644 (file)
@@ -824,7 +824,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;
        }