diff mbox series

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

Message ID 20210329122425.579386-2-festevam@gmail.com
State Accepted
Commit 0a7dc8318c2817fb33dc50946f7ca6e0ff28f036
Headers show
Series None | expand

Commit Message

Fabio Estevam March 29, 2021, 12:24 p.m. UTC
i.MX is a DT-only platform, so of_match_ptr() can be safely
removed.

Remove the unneeded of_match_ptr(). 

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 drivers/devfreq/imx8m-ddrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chanwoo Choi March 30, 2021, 2:18 a.m. UTC | #1
On 3/29/21 9:24 PM, Fabio Estevam wrote:
> i.MX is a DT-only platform, so of_match_ptr() can be safely

> removed.

> 

> Remove the unneeded of_match_ptr(). 

> 

> Signed-off-by: Fabio Estevam <festevam@gmail.com>

> ---

>  drivers/devfreq/imx8m-ddrc.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/drivers/devfreq/imx8m-ddrc.c b/drivers/devfreq/imx8m-ddrc.c

> index ecb9375aa877..16636973eb10 100644

> --- a/drivers/devfreq/imx8m-ddrc.c

> +++ b/drivers/devfreq/imx8m-ddrc.c

> @@ -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.

-- 
Best Regards,
Chanwoo Choi
Samsung Electronics
diff mbox series

Patch

diff --git a/drivers/devfreq/imx8m-ddrc.c b/drivers/devfreq/imx8m-ddrc.c
index ecb9375aa877..16636973eb10 100644
--- a/drivers/devfreq/imx8m-ddrc.c
+++ b/drivers/devfreq/imx8m-ddrc.c
@@ -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);