Skip to content

Commit

Permalink
[PATCH] USB: gadget drivers - add .owner initialisation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent a85ee6b commit d0d5049
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -2533,6 +2533,7 @@ static struct usb_gadget_driver eth_driver = {

.driver = {
.name = (char *) shortname,
.owner = THIS_MODULE,
// .shutdown = ...
// .suspend = ...
// .resume = ...
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/file_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -4044,6 +4044,7 @@ static struct usb_gadget_driver fsg_driver = {

.driver = {
.name = (char *) shortname,
.owner = THIS_MODULE,
// .release = ...
// .suspend = ...
// .resume = ...
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/goku_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/lh7a40x_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/omap_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/pxa2xx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/gadget/zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,7 @@ static struct usb_gadget_driver zero_driver = {

.driver = {
.name = (char *) shortname,
.owner = THIS_MODULE,
// .shutdown = ...
// .suspend = ...
// .resume = ...
Expand Down

0 comments on commit d0d5049

Please sign in to comment.