From: Tian Tao Date: Sat, 26 Oct 2019 01:04:35 +0000 (+0800) Subject: thermal: no need to set .owner when using module_platform_driver X-Git-Tag: v5.5-rc1~43^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=76bf653f08dd3616ad067980f52d462a97e5257b;p=thirdparty%2Fkernel%2Flinux.git thermal: no need to set .owner when using module_platform_driver the module_platform_driver will call platform_driver_register. and It will set the .owner to THIS_MODULE Signed-off-by: Tian Tao Acked-by: Talel Shenhar Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/1572051875-35861-1-git-send-email-tiantao6@huawei.com --- diff --git a/drivers/thermal/thermal_mmio.c b/drivers/thermal/thermal_mmio.c index 40524fa135337..d0bdf1ea33316 100644 --- a/drivers/thermal/thermal_mmio.c +++ b/drivers/thermal/thermal_mmio.c @@ -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), }, };