pwm: mediatek: Don't explicitly set .owner
authorkbuild test robot <fengguang.wu@intel.com>
Wed, 12 Apr 2017 20:54:42 +0000 (04:54 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 13 Apr 2017 15:35:00 +0000 (17:35 +0200)
drivers/pwm/pwm-mediatek.c:210: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: John Crispin <john@phrozen.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-mediatek.c

index 7263952..5c11bc7 100644 (file)
@@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, mtk_pwm_of_match);
 static struct platform_driver mtk_pwm_driver = {
        .driver = {
                .name = "mtk-pwm",
-               .owner = THIS_MODULE,
                .of_match_table = mtk_pwm_of_match,
        },
        .probe = mtk_pwm_probe,