soc: mediatek: mtk-mutex: Remove unnecessary .owner
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 5 May 2023 06:19:50 +0000 (14:19 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 29 May 2023 15:30:37 +0000 (17:30 +0200)
Remove .owner field if calls are used which set it automatically.

./drivers/soc/mediatek/mtk-mutex.c:1054:3-8: No need to set .owner here. The core will do it.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4869
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230505061950.25977-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-mutex.c

index 26f3d9a..4aa0913 100644 (file)
@@ -1051,7 +1051,6 @@ static struct platform_driver mtk_mutex_driver = {
        .probe          = mtk_mutex_probe,
        .driver         = {
                .name   = "mediatek-mutex",
-               .owner  = THIS_MODULE,
                .of_match_table = mutex_driver_dt_match,
        },
 };