]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: bdc: fix platform_no_drv_owner.cocci warnings
authorVasyl Gomonovych <gomonovych@gmail.com>
Wed, 22 Nov 2017 15:28:00 +0000 (16:28 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 27 Nov 2017 11:33:30 +0000 (13:33 +0200)
Remove .owner field if calls are used which set it automatically

drivers/usb/gadget/udc/bdc/bdc_core.c:645:3-8: No need to set .owner here. The core will do it.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/bdc/bdc_core.c

index d39f070acbd705573b49a1b8df1b1f0077470940..01b44e15962378d02e260ee37872ded457bc763d 100644 (file)
@@ -642,7 +642,6 @@ static const struct of_device_id bdc_of_match[] = {
 static struct platform_driver bdc_driver = {
        .driver         = {
                .name   = BRCM_BDC_NAME,
-               .owner  = THIS_MODULE,
                .pm = &bdc_pm_ops,
                .of_match_table = bdc_of_match,
        },