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 <[EMAIL PROTECTED]>

diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ehci-hcd.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ehci-hcd.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ehci-hcd.c   2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ehci-hcd.c       2005-10-10 
02:13:51.000000000 +0100
@@ -1236,6 +1236,7 @@
 static struct pci_driver ehci_pci_driver = {
        .name =         (char *) hcd_name,
        .id_table =     pci_ids,
+       .owner =        THIS_MODULE,
 
        .probe =        usb_hcd_pci_probe,
        .remove =       usb_hcd_pci_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ohci-au1xxx.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-au1xxx.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ohci-au1xxx.c        2005-06-17 
20:48:29.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-au1xxx.c    2005-10-10 
02:16:13.000000000 +0100
@@ -259,6 +259,7 @@
 
 static struct device_driver ohci_hcd_au1xxx_driver = {
        .name           = "au1xxx-ohci",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = ohci_hcd_au1xxx_drv_probe,
        .remove         = ohci_hcd_au1xxx_drv_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ohci-lh7a404.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-lh7a404.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ohci-lh7a404.c       2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-lh7a404.c   2005-10-10 
02:11:14.000000000 +0100
@@ -239,6 +239,7 @@
 
 static struct device_driver ohci_hcd_lh7a404_driver = {
        .name           = "lh7a404-ohci",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = ohci_hcd_lh7a404_drv_probe,
        .remove         = ohci_hcd_lh7a404_drv_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ohci-omap.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-omap.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ohci-omap.c  2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-omap.c      2005-10-10 
02:11:46.000000000 +0100
@@ -510,6 +510,7 @@
  */
 static struct device_driver ohci_hcd_omap_driver = {
        .name           = "ohci",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = ohci_hcd_omap_drv_probe,
        .remove         = ohci_hcd_omap_drv_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ohci-pci.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-pci.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ohci-pci.c   2005-09-01 
21:02:38.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-pci.c       2005-10-10 
02:13:09.000000000 +0100
@@ -240,6 +240,7 @@
 static struct pci_driver ohci_pci_driver = {
        .name =         (char *) hcd_name,
        .id_table =     pci_ids,
+       .owner =        THIS_MODULE,
 
        .probe =        usb_hcd_pci_probe,
        .remove =       usb_hcd_pci_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ohci-ppc-soc.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-ppc-soc.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ohci-ppc-soc.c       2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-ppc-soc.c   2005-10-10 
02:15:18.000000000 +0100
@@ -193,6 +193,7 @@
 
 static struct device_driver ohci_hcd_ppc_soc_driver = {
        .name           = "ppc-soc-ohci",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = ohci_hcd_ppc_soc_drv_probe,
        .remove         = ohci_hcd_ppc_soc_drv_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/ohci-s3c2410.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-s3c2410.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/ohci-s3c2410.c       2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/ohci-s3c2410.c   2005-10-10 
02:15:36.000000000 +0100
@@ -474,6 +474,7 @@
 
 static struct device_driver ohci_hcd_s3c2410_driver = {
        .name           = "s3c2410-ohci",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = ohci_hcd_s3c2410_drv_probe,
        .remove         = ohci_hcd_s3c2410_drv_remove,
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/sl811-hcd.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/sl811-hcd.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/sl811-hcd.c  2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/sl811-hcd.c      2005-10-10 
02:15:54.000000000 +0100
@@ -1837,6 +1837,7 @@
 struct device_driver sl811h_driver = {
        .name =         (char *) hcd_name,
        .bus =          &platform_bus_type,
+       .owner =        THIS_MODULE,
 
        .probe =        sl811h_probe,
        .remove =       __devexit_p(sl811h_remove),
diff -urN -X ../dontdiff linux-2.6.14-rc3-git8/drivers/usb/host/uhci-hcd.c 
linux-2.6.14-rc3-git8-usb/drivers/usb/host/uhci-hcd.c
--- linux-2.6.14-rc3-git8/drivers/usb/host/uhci-hcd.c   2005-10-02 
12:57:53.000000000 +0100
+++ linux-2.6.14-rc3-git8-usb/drivers/usb/host/uhci-hcd.c       2005-10-10 
02:14:51.000000000 +0100
@@ -908,6 +908,7 @@
 static struct pci_driver uhci_pci_driver = {
        .name =         (char *)hcd_name,
        .id_table =     uhci_pci_ids,
+       .owner =        THIS_MODULE,
 
        .probe =        usb_hcd_pci_probe,
        .remove =       usb_hcd_pci_remove,

Reply via email to