Commit 6fbe0cc5 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Helge Deller

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: default avatarAlexander Shiyan <eagle.alexander923@gmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 610323d8
...@@ -268,8 +268,7 @@ static int clps711x_fb_probe(struct platform_device *pdev) ...@@ -268,8 +268,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
goto out_fb_release; goto out_fb_release;
} }
cfb->syscon = cfb->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
if (IS_ERR(cfb->syscon)) { if (IS_ERR(cfb->syscon)) {
ret = PTR_ERR(cfb->syscon); ret = PTR_ERR(cfb->syscon);
goto out_fb_release; goto out_fb_release;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment