Skip to contentSkip to conversation

clk: rockchip: use module_platform_driver_probe

PATCH Superseded Miles Chen 3 participants 5 messages Sep 2, 2021 – Sep 4, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Miles Chen

author
#0 lore raw

PATCH 1/1 clk: rockchip: use module_platform_driver_probe

Replace builtin_platform_driver_probe with module_platform_driver_probe because that rk3399 and rk3568 can be built as kernel modules.

---
 drivers/clk/rockchip/clk-rk3399.c | 2 +-
 drivers/clk/rockchip/clk-rk3568.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/clk/rockchip/clk-rk3399.c +1 -1
index 62a4f2543960..a5169156f1d2 100644
@@ -1653,7 +1653,7 @@ static struct platform_driver clk_rk3399_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
+module_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
 
 MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver");
 MODULE_LICENSE("GPL");
drivers/clk/rockchip/clk-rk3568.c +1 -1
index 75ca855e720d..939e7079c334 100644
@@ -1719,7 +1719,7 @@ static struct platform_driver clk_rk3568_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
+module_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
 
 MODULE_DESCRIPTION("Rockchip RK3568 Clock Driver");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.18.0
maintainer
#1 lore raw

Quoting Miles Chen (2021-09-02 00:57:13)

Quoted 5 lines

Replace builtin_platform_driver_probe with module_platform_driver_probe because that rk3399 and rk3568 can be built as kernel modules.

Should it have a fixes tag?

maintainer Tested-by Reviewed-by on v1 1/1
#3 lore raw
In reply to Miles Chen

Am Donnerstag, 2. September 2021, 09:57:13 CEST schrieb Miles Chen:

Quoted 5 lines

Replace builtin_platform_driver_probe with module_platform_driver_probe because that rk3399 and rk3568 can be built as kernel modules.

on both rk3399 and rk3568:

and also

Heiko

Quoted 32 lines
---
 drivers/clk/rockchip/clk-rk3399.c | 2 +-
 drivers/clk/rockchip/clk-rk3568.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/clk/rockchip/clk-rk3399.c +1 -1
index 62a4f2543960..a5169156f1d2 100644
@@ -1653,7 +1653,7 @@ static struct platform_driver clk_rk3399_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
+module_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
 
 MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver");
 MODULE_LICENSE("GPL");
drivers/clk/rockchip/clk-rk3568.c +1 -1
index 75ca855e720d..939e7079c334 100644
@@ -1719,7 +1719,7 @@ static struct platform_driver clk_rk3568_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
+module_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
 
 MODULE_DESCRIPTION("Rockchip RK3568 Clock Driver");
 MODULE_LICENSE("GPL");
author
#4 lore raw
In reply to Heiko Stübner
Quoted 5 lines · Heiko Stübner

Am Donnerstag, 2. September 2021, 09:57:13 CEST schrieb Miles Chen:

Quoted 4 lines

Replace builtin_platform_driver_probe with module_platform_driver_probe
because that rk3399 and rk3568 can be built as kernel modules.

Quoted 9 lines
Quoted 2 lines

on both rk3399 and rk3568:

and also

thanks for doing the test. I will add your tags in my next patch.

Quoted 45 lines

Heiko

Quoted 38 lines
---
 drivers/clk/rockchip/clk-rk3399.c | 2 +-
 drivers/clk/rockchip/clk-rk3568.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/clk/rockchip/clk-rk3399.c +1 -1
index 62a4f2543960..a5169156f1d2 100644
@@ -1653,7 +1653,7 @@ static struct platform_driver
 clk_rk3399_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver_probe(clk_rk3399_driver,
 clk_rk3399_probe);
+module_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
 

MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver"); MODULE_LICENSE("GPL");

drivers/clk/rockchip/clk-rk3568.c +1 -1
index 75ca855e720d..939e7079c334 100644
@@ -1719,7 +1719,7 @@ static struct platform_driver
 clk_rk3568_driver = {
 		.suppress_bind_attrs = true,
 	},
 };
-builtin_platform_driver_probe(clk_rk3568_driver,
 clk_rk3568_probe);
+module_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
 

MODULE_DESCRIPTION("Rockchip RK3568 Clock Driver"); MODULE_LICENSE("GPL");