]> err.no Git - linux-2.6/commitdiff
[PATCH] USB: gadget drivers - add .owner initialisation
authorBen Dooks <ben@fluff.org.uk>
Mon, 10 Oct 2005 09:52:33 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 23:47:45 +0000 (16:47 -0700)
Ensure the the device_driver and usb_gadget_driver
have their .owner fields initialised to associate
the module owner to the driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c
drivers/usb/gadget/ether.c
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/goku_udc.c
drivers/usb/gadget/lh7a40x_udc.c
drivers/usb/gadget/net2280.c
drivers/usb/gadget/omap_udc.c
drivers/usb/gadget/pxa2xx_udc.c
drivers/usb/gadget/zero.c

index c605aaeed6367c82fd890f5f5b61da47149c7434..02106bebd5c1ff147dbb070cac83b43d4003758e 100644 (file)
@@ -967,6 +967,7 @@ static int dummy_udc_resume (struct device *dev)
 
 static struct device_driver dummy_udc_driver = {
        .name           = (char *) gadget_name,
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = dummy_udc_probe,
        .remove         = dummy_udc_remove,
@@ -1954,6 +1955,7 @@ static int dummy_hcd_resume (struct device *dev)
 
 static struct device_driver dummy_hcd_driver = {
        .name           = (char *) driver_name,
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = dummy_hcd_probe,
        .remove         = dummy_hcd_remove,
index f1024e804d5c4ae359c869c71122f0602b94105d..8f402f85e1ca71f09373866151fb51efa6322e2d 100644 (file)
@@ -2533,6 +2533,7 @@ static struct usb_gadget_driver eth_driver = {
 
        .driver         = {
                .name           = (char *) shortname,
+               .owner          = THIS_MODULE,
                // .shutdown = ...
                // .suspend = ...
                // .resume = ...
index 86a6aeb9ed769def8b5d27addd649d9fc70ab142..ea09aaa3cab69370d87ed49d5b9c2acc58eb4f35 100644 (file)
@@ -4044,6 +4044,7 @@ static struct usb_gadget_driver           fsg_driver = {
 
        .driver         = {
                .name           = (char *) shortname,
+               .owner          = THIS_MODULE,
                // .release = ...
                // .suspend = ...
                // .resume = ...
index b0f3cd63e3b9110ed8d3e73d10a2754b1917001f..654469778ab5ee9ed056fd8ac76198b03dcec3a5 100644 (file)
@@ -1970,6 +1970,7 @@ MODULE_DEVICE_TABLE (pci, pci_ids);
 static struct pci_driver goku_pci_driver = {
        .name =         (char *) driver_name,
        .id_table =     pci_ids,
+       .owner =        THIS_MODULE,
 
        .probe =        goku_probe,
        .remove =       goku_remove,
index 012d1e5f1524385b32cdb0ad870744f264b50f1f..9b3673904daf33aa4c4575cacac497f8c92cb01f 100644 (file)
@@ -2140,6 +2140,7 @@ static int lh7a40x_udc_remove(struct device *_dev)
 
 static struct device_driver udc_driver = {
        .name = (char *)driver_name,
+       .owner = THIS_MODULE,
        .bus = &platform_bus_type,
        .probe = lh7a40x_udc_probe,
        .remove = lh7a40x_udc_remove
index c32e1f7476da46d67b4e2f8336ab8cd5929b1b75..0dc6bb00bf725194a855952f73ef72999bcb9d5c 100644 (file)
@@ -2948,6 +2948,7 @@ MODULE_DEVICE_TABLE (pci, pci_ids);
 static struct pci_driver net2280_pci_driver = {
        .name =         (char *) driver_name,
        .id_table =     pci_ids,
+       .owner =        THIS_MODULE,
 
        .probe =        net2280_probe,
        .remove =       net2280_remove,
index b42799bc747aa8345b969f479e5304495fc6d698..41c96b0afbb372b650d26a8503bcaadd2bc9699f 100644 (file)
@@ -2949,6 +2949,7 @@ static int omap_udc_resume(struct device *dev)
 
 static struct device_driver udc_driver = {
        .name           = (char *) driver_name,
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = omap_udc_probe,
        .remove         = __exit_p(omap_udc_remove),
index 647028590b23c0b98a0bc1f63a5e742aa152f2bf..f83a9262f953364de6b908a733218f67bb7fa564 100644 (file)
@@ -2631,6 +2631,7 @@ static int pxa2xx_udc_resume(struct device *dev)
 
 static struct device_driver udc_driver = {
        .name           = "pxa2xx-udc",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = pxa2xx_udc_probe,
        .shutdown       = pxa2xx_udc_shutdown,
index ec9c424f1d9706e59fa6a31612c96cacfdbd75ab..6c58636e914b697d9dea954d77a48feb31b124ec 100644 (file)
@@ -1302,6 +1302,7 @@ static struct usb_gadget_driver zero_driver = {
 
        .driver         = {
                .name           = (char *) shortname,
+               .owner          = THIS_MODULE,
                // .shutdown = ...
                // .suspend = ...
                // .resume = ...