Skip to contentSkip to conversation

PM / devfreq: imx-bus: Remove unneeded of_match_ptr()

PATCH Applied Fabio Estevam 2 participants 4 messages Mar 29, 2021 – Mar 30, 2021

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 PM / devfreq: imx-bus: Remove unneeded of_match_ptr()

i.MX is a DT-only platform, so of_match_ptr() can be safely removed.

Remove the unneeded of_match_ptr().

---
 drivers/devfreq/imx-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/imx-bus.c +1 -1
index 4f38455ad742..3fc3fd77492d 100644
@@ -169,7 +169,7 @@ static struct platform_driver imx_bus_platdrv = {
 	.probe		= imx_bus_probe,
 	.driver = {
 		.name	= "imx-bus-devfreq",
-		.of_match_table = of_match_ptr(imx_bus_of_match),
+		.of_match_table = imx_bus_of_match,
 	},
 };
 module_platform_driver(imx_bus_platdrv);
Signature · 1 line
2.25.1
author reviewer
#1 lore raw

PATCH 2/2 PM / devfreq: imx8m-ddrc: Remove unneeded of_match_ptr()

i.MX is a DT-only platform, so of_match_ptr() can be safely removed.

Remove the unneeded of_match_ptr().

---
 drivers/devfreq/imx8m-ddrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/imx8m-ddrc.c +1 -1
index ecb9375aa877..16636973eb10 100644
@@ -447,7 +447,7 @@ static struct platform_driver imx8m_ddrc_platdrv = {
 	.probe		= imx8m_ddrc_probe,
 	.driver = {
 		.name	= "imx8m-ddrc-devfreq",
-		.of_match_table = of_match_ptr(imx8m_ddrc_of_match),
+		.of_match_table = imx8m_ddrc_of_match,
 	},
 };
 module_platform_driver(imx8m_ddrc_platdrv);
Signature · 1 line
2.25.1
maintainer Applied
#2 lore raw

Re: [PATCH 2/2] PM / devfreq: imx8m-ddrc: Remove unneeded of_match_ptr()

Quoted 16 lines · Fabio Estevam

i.MX is a DT-only platform, so of_match_ptr() can be safely removed.

Remove the unneeded of_match_ptr().

---
 drivers/devfreq/imx8m-ddrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/imx8m-ddrc.c +0 -0
index ecb9375aa877..16636973eb10 100644

drivers/devfreq/imx8m-ddrc.c static struct platform_driver imx8m_ddrc_platdrv = { · line 453

Quoted 8 lines
drivers/devfreq/imx8m-ddrc.c +1 -1
@@ -447,7 +447,7 @@ static struct platform_driver imx8m_ddrc_platdrv = {
 	.probe		= imx8m_ddrc_probe,
 	.driver = {
 		.name	= "imx8m-ddrc-devfreq",
-		.of_match_table = of_match_ptr(imx8m_ddrc_of_match),
+		.of_match_table = imx8m_ddrc_of_match,
 	},
 };
 module_platform_driver(imx8m_ddrc_platdrv);

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics
maintainer Applied
#3 lore raw
In reply to Fabio Estevam
Quoted 16 lines · Fabio Estevam

i.MX is a DT-only platform, so of_match_ptr() can be safely removed.

Remove the unneeded of_match_ptr().

---
 drivers/devfreq/imx-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/devfreq/imx-bus.c +0 -0
index 4f38455ad742..3fc3fd77492d 100644

drivers/devfreq/imx-bus.c static struct platform_driver imx_bus_platdrv = { · line 175

Quoted 8 lines
drivers/devfreq/imx-bus.c +1 -1
@@ -169,7 +169,7 @@ static struct platform_driver imx_bus_platdrv = {
 	.probe		= imx_bus_probe,
 	.driver = {
 		.name	= "imx-bus-devfreq",
-		.of_match_table = of_match_ptr(imx_bus_of_match),
+		.of_match_table = imx_bus_of_match,
 	},
 };
 module_platform_driver(imx_bus_platdrv);

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics