Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0d5049f authored by Ben Dooks's avatar Ben Dooks Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: gadget drivers - add .owner initialisation



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: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a85ee6b5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,
+1 −0
Original line number Diff line number Diff line
@@ -2533,6 +2533,7 @@ static struct usb_gadget_driver eth_driver = {

	.driver 	= {
		.name		= (char *) shortname,
		.owner		= THIS_MODULE,
		// .shutdown = ...
		// .suspend = ...
		// .resume = ...
+1 −0
Original line number Diff line number Diff line
@@ -4044,6 +4044,7 @@ static struct usb_gadget_driver fsg_driver = {

	.driver		= {
		.name		= (char *) shortname,
		.owner		= THIS_MODULE,
		// .release = ...
		// .suspend = ...
		// .resume = ...
+1 −0
Original line number Diff line number Diff line
@@ -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,
+1 −0
Original line number Diff line number Diff line
@@ -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
Loading