[PATCH] video: clps711x-fb: Use syscon_regmap_lookup_by_phandle

Helge Deller deller at gmx.de
Mon Apr 25 18:13:46 UTC 2022


On 4/20/22 09:06, Alexander Shiyan wrote:
> Since version 5.13, the standard syscon bindings have been added
> to all clps711x DT nodes, so we can now use the more general
> syscon_regmap_lookup_by_phandle function to get the syscon pointer.
>
> Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>

applied.
Thanks,
Helge


> ---
>  drivers/video/fbdev/clps711x-fb.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c
> index c5d15c6db287..771ce1f76951 100644
> --- a/drivers/video/fbdev/clps711x-fb.c
> +++ b/drivers/video/fbdev/clps711x-fb.c
> @@ -268,8 +268,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
>  		goto out_fb_release;
>  	}
>
> -	cfb->syscon =
> -		syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
> +	cfb->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
>  	if (IS_ERR(cfb->syscon)) {
>  		ret = PTR_ERR(cfb->syscon);
>  		goto out_fb_release;



More information about the dri-devel mailing list