goldfish: pipe: fix platform_no_drv_owner.cocci warnings
authorFengguang Wu <fengguang.wu@intel.com>
Sat, 26 Dec 2015 14:55:02 +0000 (20:25 +0530)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:54:22 +0000 (13:54 -0800)
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: Lizhe Liu <lizhe.liu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/platform/goldfish/goldfish_pipe.c

index 34e447975ece0898ced4fa330094ea365d6acb13..3215a33cf4fe516e7af76215945ecb3be5ccfcd8 100644 (file)
@@ -666,7 +666,6 @@ static struct platform_driver goldfish_pipe = {
        .remove = goldfish_pipe_remove,
        .driver = {
                .name = "goldfish_pipe",
-               .owner = THIS_MODULE,
                .of_match_table = goldfish_pipe_of_match,
                .acpi_match_table = ACPI_PTR(goldfish_pipe_acpi_match),
        }