thermal: no need to set .owner when using module_platform_driver
authorTian Tao <tiantao6@huawei.com>
Sat, 26 Oct 2019 01:04:35 +0000 (09:04 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Nov 2019 06:00:26 +0000 (07:00 +0100)
the module_platform_driver will call platform_driver_register.
and It will set the .owner to THIS_MODULE

Signed-off-by: Tian Tao <tiantao6@huawei.com>
Acked-by: Talel Shenhar <talel@amazon.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1572051875-35861-1-git-send-email-tiantao6@huawei.com
drivers/thermal/thermal_mmio.c

index 40524fa..d0bdf1e 100644 (file)
@@ -110,7 +110,6 @@ static struct platform_driver thermal_mmio_driver = {
        .probe = thermal_mmio_probe,
        .driver = {
                .name = "thermal-mmio",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(thermal_mmio_id_table),
        },
 };