Skip to content

Commit 6fbe0cc

Browse files
shcgithdeller
authored andcommitted
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 <eagle.alexander923@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 610323d commit 6fbe0cc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/video/fbdev/clps711x-fb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
268268
goto out_fb_release;
269269
}
270270

271-
cfb->syscon =
272-
syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
271+
cfb->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
273272
if (IS_ERR(cfb->syscon)) {
274273
ret = PTR_ERR(cfb->syscon);
275274
goto out_fb_release;

0 commit comments

Comments
 (0)