diff mbox series

[14/52] USB: serial: generic: drop driver owner initialization

Message ID 20240328-module-owner-usb-serial-v1-14-bc46c9ffbf56@linaro.org (mailing list archive)
State Superseded
Headers show
Series USB: store owner from modules with usb_serial_register_drivers() | expand

Commit Message

Krzysztof Kozlowski March 28, 2024, 10:05 p.m. UTC
Core in usb_serial_register_drivers() already sets the .owner, so driver
does not need to.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/usb/serial/generic.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c
index 15b6dee3a8e5..757f0a586ddb 100644
--- a/drivers/usb/serial/generic.c
+++ b/drivers/usb/serial/generic.c
@@ -63,7 +63,6 @@  static int usb_serial_generic_calc_num_ports(struct usb_serial *serial,
 
 static struct usb_serial_driver usb_serial_generic_device = {
 	.driver = {
-		.owner =	THIS_MODULE,
 		.name =		"generic",
 	},
 	.id_table =		generic_device_ids,