]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mailbox: pcc: fix platform_no_drv_owner.cocci warnings
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 3 Mar 2021 09:05:04 +0000 (17:05 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 14 Apr 2021 01:07:35 +0000 (20:07 -0500)
./drivers/mailbox/pcc.c:580:3-8: No need to set .owner here. The core
will do it.

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

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/pcc.c

index ef9ecd1f595880f197140103759b1c2a2a3874bd..4b1a2d2a3d7bb39706f213ce6f418842879d7509 100644 (file)
@@ -577,7 +577,6 @@ static struct platform_driver pcc_mbox_driver = {
        .probe = pcc_mbox_probe,
        .driver = {
                .name = "PCCT",
-               .owner = THIS_MODULE,
        },
 };