drivers/usb/host: add missing platform_driver owner
Subsystems (6)
PATCH 2/19 drivers/usb/host: add missing platform_driver owner
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece
Signed-off-by Libo Chen <[email protected]>
--- drivers/usb/host/ehci-atmel.c | 1 + drivers/usb/host/ehci-msm.c | 1 + drivers/usb/host/ehci-mv.c | 1 + drivers/usb/host/ehci-mxc.c | 1 + drivers/usb/host/ehci-omap.c | 1 + drivers/usb/host/ehci-spear.c | 1 + drivers/usb/host/isp1760-if.c | 1 + drivers/usb/host/oxu210hp-hcd.c | 1 + drivers/usb/host/xhci-plat.c | 1 + 9 files changed, 9 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-atmel.c +1 -0
@@ -182,6 +182,7 @@ static struct platform_driver ehci_atmel_driver = { .shutdown = usb_hcd_platform_shutdown, .driver = { .name = "atmel-ehci", + .owner = THIS_MODULE, .of_match_table = of_match_ptr(atmel_ehci_dt_ids), }, };
drivers/usb/host/ehci-msm.c +1 -0
@@ -191,6 +191,7 @@ static struct platform_driver ehci_msm_driver = { .remove = ehci_msm_remove, .driver = { .name = "msm_hsusb_host", + .owner = THIS_MODULE, .pm = &ehci_msm_dev_pm_ops, }, };
drivers/usb/host/ehci-mv.c +1 -0
@@ -335,6 +335,7 @@ static struct platform_driver ehci_mv_driver = { .shutdown = mv_ehci_shutdown, .driver = { .name = "mv-ehci", + .owner = THIS_MODULE, .bus = &platform_bus_type, }, .id_table = ehci_id_table,
drivers/usb/host/ehci-mxc.c +1 -0
@@ -214,6 +214,7 @@ static struct platform_driver ehci_mxc_driver = { .shutdown = ehci_mxc_drv_shutdown, .driver = { .name = "mxc-ehci", + .owner = THIS_MODULE, }, };
drivers/usb/host/ehci-omap.c +1 -0
@@ -294,6 +294,7 @@ static struct platform_driver ehci_hcd_omap_driver = {/*.resume = ehci_hcd_omap_resume, */ .driver = { .name = hcd_name, + .owner = THIS_MODULE, .of_match_table = of_match_ptr(omap_ehci_dt_ids), } };
drivers/usb/host/ehci-spear.c +1 -0
@@ -172,6 +172,7 @@ static struct platform_driver spear_ehci_hcd_driver = { .shutdown = usb_hcd_platform_shutdown, .driver = { .name = "spear-ehci", + .owner = THIS_MODULE, .bus = &platform_bus_type, .pm = &ehci_spear_pm_ops, .of_match_table = of_match_ptr(spear_ehci_id_table),
drivers/usb/host/isp1760-if.c +1 -0
@@ -435,6 +435,7 @@ static struct platform_driver isp1760_plat_driver = { .remove = isp1760_plat_remove, .driver = { .name = "isp1760", + .owner = THIS_MODULE, }, };
drivers/usb/host/oxu210hp-hcd.c +1 -0
@@ -3947,6 +3947,7 @@ static struct platform_driver oxu_driver = { .resume = oxu_drv_resume, .driver = { .name = "oxu210hp-hcd", + .owner = THIS_MODULE, .bus = &platform_bus_type } };
drivers/usb/host/xhci-plat.c +1 -0
@@ -190,6 +190,7 @@ static struct platform_driver usb_xhci_driver = { .remove = xhci_plat_remove, .driver = { .name = "xhci-hcd", + .owner = THIS_MODULE, }, };MODULE_ALIAS ("platform:xhci-hcd" );
Signature · 1 line
1.7.1
Quoted 6 lines · Libo Chen
set the owner of
platform_driver, to ensure that the caller of driver holds a module referneceSigned-off-by Libo Chen <[email protected]>--- drivers/usb/host/ehci-spear.c | 1 +
Acked-by Viresh Kumar <[email protected]>