video: fbdev: clps711x-fb: Use syscon_regmap_lookup_by_phandle
authorAlexander Shiyan <eagle.alexander923@gmail.com>
Wed, 20 Apr 2022 07:06:39 +0000 (10:06 +0300)
committerHelge Deller <deller@gmx.de>
Mon, 25 Apr 2022 18:12:12 +0000 (20:12 +0200)
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@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/clps711x-fb.c

index c5d15c6db28767d04dd7a0d3ab55fbebd78adabb..771ce1f769515554ee65604cd63e5fc66410916d 100644 (file)
@@ -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;