diff mbox series

drm/rockchip: cdn-dp: drop driver owner assignment

Message ID 20240330202754.83907-1-krzysztof.kozlowski@linaro.org (mailing list archive)
State New, archived
Headers show
Series drm/rockchip: cdn-dp: drop driver owner assignment | expand

Commit Message

Krzysztof Kozlowski March 30, 2024, 8:27 p.m. UTC
Core in platform_driver_register() already sets the .owner, so driver
does not need to.  Whatever is set here will be anyway overwritten by
main driver calling platform_driver_register().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/gpu/drm/rockchip/cdn-dp-core.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Heiko Stuebner April 19, 2024, 11:18 a.m. UTC | #1
On Sat, 30 Mar 2024 21:27:54 +0100, Krzysztof Kozlowski wrote:
> Core in platform_driver_register() already sets the .owner, so driver
> does not need to.  Whatever is set here will be anyway overwritten by
> main driver calling platform_driver_register().
> 
> 

Applied, thanks!

[1/1] drm/rockchip: cdn-dp: drop driver owner assignment
      commit: 0e353133816b3e3e4bf8a682de01506ebc2b1dee

Best regards,
diff mbox series

Patch

diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c
index a855c45ae7f3..419542c66b53 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-core.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c
@@ -1259,7 +1259,6 @@  struct platform_driver cdn_dp_driver = {
 	.shutdown = cdn_dp_shutdown,
 	.driver = {
 		   .name = "cdn-dp",
-		   .owner = THIS_MODULE,
 		   .of_match_table = cdn_dp_dt_ids,
 		   .pm = &cdn_dp_pm_ops,
 	},