ANDROID: video: goldfishfb: fix platform_no_drv_owner.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Fri, 18 Nov 2016 05:16:07 +0000 (13:16 +0800)
committerGuenter Roeck <groeck@chromium.org>
Fri, 18 Nov 2016 17:55:34 +0000 (09:55 -0800)
drivers/video/fbdev/goldfishfb.c:318: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: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Guenter Roeck <groeck@chromium.org>
drivers/video/fbdev/goldfishfb.c

index 131fee0341c30f456be4efe117489d68ce6a6cc4..1e56b50e408234f826fd28fdaa1bee0807911dcf 100644 (file)
@@ -322,7 +322,6 @@ static struct platform_driver goldfish_fb_driver = {
        .remove         = goldfish_fb_remove,
        .driver = {
                .name = "goldfish_fb",
-               .owner = THIS_MODULE,
                .of_match_table = goldfish_fb_of_match,
                .acpi_match_table = ACPI_PTR(goldfish_fb_acpi_match),
        }