usb: chipidea: fix platform_no_drv_owner.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Wed, 26 Nov 2014 19:16:33 +0000 (03:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 19:47:43 +0000 (11:47 -0800)
drivers/usb/chipidea/ci_hdrc_usb2.c:108:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
Cc: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_usb2.c

index 61d8e55df1bd5b0853f242a4c57d6eb0de087347..45844c951788c99d71c6cfa01ed9669816efec78 100644 (file)
@@ -105,7 +105,6 @@ static struct platform_driver ci_hdrc_usb2_driver = {
        .remove = ci_hdrc_usb2_remove,
        .driver = {
                .name           = "chipidea-usb2",
-               .owner          = THIS_MODULE,
                .of_match_table = of_match_ptr(ci_hdrc_usb2_of_match),
        },
 };