powerpc/pseries: Fix platform_no_drv_owner.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Mon, 18 Feb 2019 13:39:50 +0000 (13:39 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:06 +0000 (16:58 +1100)
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190218133950.95225-1-yuehaibing@huawei.com
arch/powerpc/platforms/pseries/papr_scm.c

index ee07d07..f87b474 100644 (file)
@@ -513,7 +513,6 @@ static struct platform_driver papr_scm_driver = {
        .remove = papr_scm_remove,
        .driver = {
                .name = "papr_scm",
-               .owner = THIS_MODULE,
                .of_match_table = papr_scm_match,
        },
 };