diff options
Diffstat (limited to 'drivers/usb/storage/sddr09.c')
-rw-r--r-- | drivers/usb/storage/sddr09.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c index 3847053d732c..b74603689b9e 100644 --- a/drivers/usb/storage/sddr09.c +++ b/drivers/usb/storage/sddr09.c | |||
@@ -52,6 +52,9 @@ | |||
52 | #include "transport.h" | 52 | #include "transport.h" |
53 | #include "protocol.h" | 53 | #include "protocol.h" |
54 | #include "debug.h" | 54 | #include "debug.h" |
55 | #include "scsiglue.h" | ||
56 | |||
57 | #define DRV_NAME "ums-sddr09" | ||
55 | 58 | ||
56 | MODULE_DESCRIPTION("Driver for SanDisk SDDR-09 SmartMedia reader"); | 59 | MODULE_DESCRIPTION("Driver for SanDisk SDDR-09 SmartMedia reader"); |
57 | MODULE_AUTHOR("Andries Brouwer <aeb@cwi.nl>, Robert Baruch <autophile@starband.net>"); | 60 | MODULE_AUTHOR("Andries Brouwer <aeb@cwi.nl>, Robert Baruch <autophile@starband.net>"); |
@@ -1738,6 +1741,8 @@ usb_stor_sddr09_init(struct us_data *us) { | |||
1738 | return sddr09_common_init(us); | 1741 | return sddr09_common_init(us); |
1739 | } | 1742 | } |
1740 | 1743 | ||
1744 | static struct scsi_host_template sddr09_host_template; | ||
1745 | |||
1741 | static int sddr09_probe(struct usb_interface *intf, | 1746 | static int sddr09_probe(struct usb_interface *intf, |
1742 | const struct usb_device_id *id) | 1747 | const struct usb_device_id *id) |
1743 | { | 1748 | { |
@@ -1745,7 +1750,8 @@ static int sddr09_probe(struct usb_interface *intf, | |||
1745 | int result; | 1750 | int result; |
1746 | 1751 | ||
1747 | result = usb_stor_probe1(&us, intf, id, | 1752 | result = usb_stor_probe1(&us, intf, id, |
1748 | (id - sddr09_usb_ids) + sddr09_unusual_dev_list); | 1753 | (id - sddr09_usb_ids) + sddr09_unusual_dev_list, |
1754 | &sddr09_host_template); | ||
1749 | if (result) | 1755 | if (result) |
1750 | return result; | 1756 | return result; |
1751 | 1757 | ||
@@ -1766,7 +1772,7 @@ static int sddr09_probe(struct usb_interface *intf, | |||
1766 | } | 1772 | } |
1767 | 1773 | ||
1768 | static struct usb_driver sddr09_driver = { | 1774 | static struct usb_driver sddr09_driver = { |
1769 | .name = "ums-sddr09", | 1775 | .name = DRV_NAME, |
1770 | .probe = sddr09_probe, | 1776 | .probe = sddr09_probe, |
1771 | .disconnect = usb_stor_disconnect, | 1777 | .disconnect = usb_stor_disconnect, |
1772 | .suspend = usb_stor_suspend, | 1778 | .suspend = usb_stor_suspend, |
@@ -1779,4 +1785,4 @@ static struct usb_driver sddr09_driver = { | |||
1779 | .no_dynamic_id = 1, | 1785 | .no_dynamic_id = 1, |
1780 | }; | 1786 | }; |
1781 | 1787 | ||
1782 | module_usb_driver(sddr09_driver); | 1788 | module_usb_stor_driver(sddr09_driver, sddr09_host_template, DRV_NAME); |