diff options
author | Ben Dooks <ben@fluff.org.uk> | 2005-10-09 21:32:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 19:47:45 -0400 |
commit | efa400db5332ba341cc354c9d8a5298ff57faa98 (patch) | |
tree | c7c5084e0a329813b38ca2d43f9d04c3eef2a0f4 /drivers/usb | |
parent | d0d5049fb02fc1082c17e08deecd6fed8db549b6 (diff) |
[PATCH] USB: add owner initialisation to host drivers
Add .owner initialisation to the device drivers
in drivers/usb/host so that when built as module
the device_driver refers to the owning module
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ehci-pci.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-au1xxx.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-lh7a404.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-pci.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/ohci-ppc-soc.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/uhci-hcd.c | 1 |
8 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 8bbc8dfe19f3..7872469ccbb1 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c | |||
@@ -383,6 +383,7 @@ MODULE_DEVICE_TABLE (pci, pci_ids); | |||
383 | static struct pci_driver ehci_pci_driver = { | 383 | static struct pci_driver ehci_pci_driver = { |
384 | .name = (char *) hcd_name, | 384 | .name = (char *) hcd_name, |
385 | .id_table = pci_ids, | 385 | .id_table = pci_ids, |
386 | .owner = THIS_MODULE, | ||
386 | 387 | ||
387 | .probe = usb_hcd_pci_probe, | 388 | .probe = usb_hcd_pci_probe, |
388 | .remove = usb_hcd_pci_remove, | 389 | .remove = usb_hcd_pci_remove, |
diff --git a/drivers/usb/host/ohci-au1xxx.c b/drivers/usb/host/ohci-au1xxx.c index ac463c493035..a277e258eb6c 100644 --- a/drivers/usb/host/ohci-au1xxx.c +++ b/drivers/usb/host/ohci-au1xxx.c | |||
@@ -264,6 +264,7 @@ static int ohci_hcd_au1xxx_drv_resume(struct device *dev) | |||
264 | 264 | ||
265 | static struct device_driver ohci_hcd_au1xxx_driver = { | 265 | static struct device_driver ohci_hcd_au1xxx_driver = { |
266 | .name = "au1xxx-ohci", | 266 | .name = "au1xxx-ohci", |
267 | .owner = THIS_MODULE, | ||
267 | .bus = &platform_bus_type, | 268 | .bus = &platform_bus_type, |
268 | .probe = ohci_hcd_au1xxx_drv_probe, | 269 | .probe = ohci_hcd_au1xxx_drv_probe, |
269 | .remove = ohci_hcd_au1xxx_drv_remove, | 270 | .remove = ohci_hcd_au1xxx_drv_remove, |
diff --git a/drivers/usb/host/ohci-lh7a404.c b/drivers/usb/host/ohci-lh7a404.c index e2ed55b69f86..238fa4ade615 100644 --- a/drivers/usb/host/ohci-lh7a404.c +++ b/drivers/usb/host/ohci-lh7a404.c | |||
@@ -244,6 +244,7 @@ static int ohci_hcd_lh7a404_drv_resume(struct device *dev) | |||
244 | 244 | ||
245 | static struct device_driver ohci_hcd_lh7a404_driver = { | 245 | static struct device_driver ohci_hcd_lh7a404_driver = { |
246 | .name = "lh7a404-ohci", | 246 | .name = "lh7a404-ohci", |
247 | .owner = THIS_MODULE, | ||
247 | .bus = &platform_bus_type, | 248 | .bus = &platform_bus_type, |
248 | .probe = ohci_hcd_lh7a404_drv_probe, | 249 | .probe = ohci_hcd_lh7a404_drv_probe, |
249 | .remove = ohci_hcd_lh7a404_drv_remove, | 250 | .remove = ohci_hcd_lh7a404_drv_remove, |
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 982cdca22516..45efeed1fcc3 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c | |||
@@ -492,6 +492,7 @@ static int ohci_omap_resume(struct device *dev) | |||
492 | */ | 492 | */ |
493 | static struct device_driver ohci_hcd_omap_driver = { | 493 | static struct device_driver ohci_hcd_omap_driver = { |
494 | .name = "ohci", | 494 | .name = "ohci", |
495 | .owner = THIS_MODULE, | ||
495 | .bus = &platform_bus_type, | 496 | .bus = &platform_bus_type, |
496 | .probe = ohci_hcd_omap_drv_probe, | 497 | .probe = ohci_hcd_omap_drv_probe, |
497 | .remove = ohci_hcd_omap_drv_remove, | 498 | .remove = ohci_hcd_omap_drv_remove, |
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index a8dde8b75691..bf1d5ab4aa3a 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
@@ -216,6 +216,7 @@ MODULE_DEVICE_TABLE (pci, pci_ids); | |||
216 | static struct pci_driver ohci_pci_driver = { | 216 | static struct pci_driver ohci_pci_driver = { |
217 | .name = (char *) hcd_name, | 217 | .name = (char *) hcd_name, |
218 | .id_table = pci_ids, | 218 | .id_table = pci_ids, |
219 | .owner = THIS_MODULE, | ||
219 | 220 | ||
220 | .probe = usb_hcd_pci_probe, | 221 | .probe = usb_hcd_pci_probe, |
221 | .remove = usb_hcd_pci_remove, | 222 | .remove = usb_hcd_pci_remove, |
diff --git a/drivers/usb/host/ohci-ppc-soc.c b/drivers/usb/host/ohci-ppc-soc.c index 228845eb7eab..4832e57ae579 100644 --- a/drivers/usb/host/ohci-ppc-soc.c +++ b/drivers/usb/host/ohci-ppc-soc.c | |||
@@ -193,6 +193,7 @@ static int ohci_hcd_ppc_soc_drv_remove(struct device *dev) | |||
193 | 193 | ||
194 | static struct device_driver ohci_hcd_ppc_soc_driver = { | 194 | static struct device_driver ohci_hcd_ppc_soc_driver = { |
195 | .name = "ppc-soc-ohci", | 195 | .name = "ppc-soc-ohci", |
196 | .owner = THIS_MODULE, | ||
196 | .bus = &platform_bus_type, | 197 | .bus = &platform_bus_type, |
197 | .probe = ohci_hcd_ppc_soc_drv_probe, | 198 | .probe = ohci_hcd_ppc_soc_drv_probe, |
198 | .remove = ohci_hcd_ppc_soc_drv_remove, | 199 | .remove = ohci_hcd_ppc_soc_drv_remove, |
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 1e47c1f86e70..40169d9cf2b1 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -1831,6 +1831,7 @@ sl811h_resume(struct device *dev) | |||
1831 | struct device_driver sl811h_driver = { | 1831 | struct device_driver sl811h_driver = { |
1832 | .name = (char *) hcd_name, | 1832 | .name = (char *) hcd_name, |
1833 | .bus = &platform_bus_type, | 1833 | .bus = &platform_bus_type, |
1834 | .owner = THIS_MODULE, | ||
1834 | 1835 | ||
1835 | .probe = sl811h_probe, | 1836 | .probe = sl811h_probe, |
1836 | .remove = __devexit_p(sl811h_remove), | 1837 | .remove = __devexit_p(sl811h_remove), |
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index d33ce3982a5f..15e0a511069b 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
@@ -831,6 +831,7 @@ MODULE_DEVICE_TABLE(pci, uhci_pci_ids); | |||
831 | static struct pci_driver uhci_pci_driver = { | 831 | static struct pci_driver uhci_pci_driver = { |
832 | .name = (char *)hcd_name, | 832 | .name = (char *)hcd_name, |
833 | .id_table = uhci_pci_ids, | 833 | .id_table = uhci_pci_ids, |
834 | .owner = THIS_MODULE, | ||
834 | 835 | ||
835 | .probe = usb_hcd_pci_probe, | 836 | .probe = usb_hcd_pci_probe, |
836 | .remove = usb_hcd_pci_remove, | 837 | .remove = usb_hcd_pci_remove, |