Commit 5cf1973a44bd298e3cfce6f6af8faa8c9d0a6d55

Authored by Oliver Neukum
Committed by Greg Kroah-Hartman
1 parent 4a9bee8256

USB: make the microtek driver and HAL cooperate

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

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/usb/image/microtek.c
... ... @@ -819,7 +819,7 @@
819 819 goto out_kfree2;
820 820  
821 821 new_desc->host->hostdata[0] = (unsigned long)new_desc;
822   - if (scsi_add_host(new_desc->host, NULL)) {
  822 + if (scsi_add_host(new_desc->host, &dev->dev)) {
823 823 err_retval = -EIO;
824 824 goto out_host_put;
825 825 }