summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/ffb.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2019-02-08 19:24:45 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-08 19:24:45 +0100
commita6f13af4d115a1afb97a9215c491f0bbc5362af7 (patch)
treecddd6dbfee311d2755bcaf8371f92b23807d3580 /drivers/video/fbdev/ffb.c
parent23cd78e28a7b17528f44933edb93e93ba082138c (diff)
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/ffb.c')
-rw-r--r--drivers/video/fbdev/ffb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/ffb.c b/drivers/video/fbdev/ffb.c
index 6b1915872af1..b7aee0c427a8 100644
--- a/drivers/video/fbdev/ffb.c
+++ b/drivers/video/fbdev/ffb.c
@@ -944,7 +944,7 @@ static int ffb_probe(struct platform_device *op)
info->var.accel_flags = FB_ACCELF_TEXT;
- if (!strcmp(dp->name, "SUNW,afb"))
+ if (of_node_name_eq(dp, "SUNW,afb"))
par->flags |= FFB_FLAG_AFB;
par->board_type = of_getintprop_default(dp, "board_type", 0);