diff options
author | Rob Herring <robh@kernel.org> | 2019-02-08 19:24:45 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-02-08 19:24:45 +0100 |
commit | a6f13af4d115a1afb97a9215c491f0bbc5362af7 (patch) | |
tree | cddd6dbfee311d2755bcaf8371f92b23807d3580 /drivers/video/fbdev/cg3.c | |
parent | 23cd78e28a7b17528f44933edb93e93ba082138c (diff) | |
download | linux-stable-a6f13af4d115a1afb97a9215c491f0bbc5362af7.tar.gz linux-stable-a6f13af4d115a1afb97a9215c491f0bbc5362af7.tar.bz2 linux-stable-a6f13af4d115a1afb97a9215c491f0bbc5362af7.zip |
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.c | 2 |
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); |