From: Alexander Shiyan Date: Wed, 20 Apr 2022 07:06:39 +0000 (+0300) Subject: video: fbdev: clps711x-fb: Use syscon_regmap_lookup_by_phandle X-Git-Tag: v6.1-rc5~1492^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fbe0cc53a1b5f7abe2c44399c18e943adbebe2f;p=platform%2Fkernel%2Flinux-starfive.git video: fbdev: clps711x-fb: Use syscon_regmap_lookup_by_phandle 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 Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/clps711x-fb.c b/drivers/video/fbdev/clps711x-fb.c index c5d15c6..771ce1f 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;