]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/image/microtek.c
atomic: fix a typo in atomic_long_xchg()
[linux-2.6-omap-h63xx.git] / drivers / usb / image / microtek.c
index 91e999c9f680cec92aed6c38fa58698820d3754e..885867a86de81b6948b1e7671e059903047b535e 100644 (file)
@@ -185,7 +185,7 @@ static struct usb_driver mts_usb_driver = {
        printk( KERN_DEBUG MTS_NAME x )
 
 #define MTS_DEBUG_GOT_HERE() \
-       MTS_DEBUG("got to %s:%d (%s)\n", __FILE__, (int)__LINE__, __PRETTY_FUNCTION__ )
+       MTS_DEBUG("got to %s:%d (%s)\n", __FILE__, (int)__LINE__, __func__ )
 #define MTS_DEBUG_INT() \
        do { MTS_DEBUG_GOT_HERE(); \
             MTS_DEBUG("transfer = 0x%x context = 0x%x\n",(int)transfer,(int)context ); \
@@ -794,7 +794,6 @@ static int mts_usb_probe(struct usb_interface *intf,
 
        new_desc->usb_dev = dev;
        new_desc->usb_intf = intf;
-       init_MUTEX(&new_desc->lock);
 
        /* endpoints */
        new_desc->ep_out = ep_out;
@@ -819,7 +818,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;
        }