Message ID | 20210329122425.579386-1-festevam@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Chanwoo Choi |
Headers | show |
Series | [1/2] PM / devfreq: imx-bus: Remove unneeded of_match_ptr() | expand |
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/imx-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c > index 4f38455ad742..3fc3fd77492d 100644 > --- a/drivers/devfreq/imx-bus.c > +++ b/drivers/devfreq/imx-bus.c > @@ -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.
diff --git a/drivers/devfreq/imx-bus.c b/drivers/devfreq/imx-bus.c index 4f38455ad742..3fc3fd77492d 100644 --- a/drivers/devfreq/imx-bus.c +++ b/drivers/devfreq/imx-bus.c @@ -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);
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/imx-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)