summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/cg3.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2019-02-08 21:24:45 +0300
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-08 21:24:45 +0300
commita6f13af4d115a1afb97a9215c491f0bbc5362af7 (patch)
treecddd6dbfee311d2755bcaf8371f92b23807d3580 /drivers/video/fbdev/cg3.c
parent23cd78e28a7b17528f44933edb93e93ba082138c (diff)
downloadlinux-a6f13af4d115a1afb97a9215c491f0bbc5362af7.tar.xz
fbdev: Use of_node_name_eq for node name comparisons
Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. For instances using of_node_cmp, this has the side effect of now using case sensitive comparisons. This should not matter for any FDT based system which omap is. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/cg3.c')
-rw-r--r--drivers/video/fbdev/cg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/cg3.c b/drivers/video/fbdev/cg3.c
index 1bd95b02f3aa..6d42def8436b 100644
--- a/drivers/video/fbdev/cg3.c
+++ b/drivers/video/fbdev/cg3.c
@@ -369,7 +369,7 @@ static int cg3_probe(struct platform_device *op)
info->var.red.length = 8;
info->var.green.length = 8;
info->var.blue.length = 8;
- if (!strcmp(dp->name, "cgRDI"))
+ if (of_node_name_eq(dp, "cgRDI"))
par->flags |= CG3_FLAG_RDI;
if (par->flags & CG3_FLAG_RDI)
cg3_rdi_maybe_fixup_var(&info->var, dp);