diff options
| author | Rob Herring <[email protected]> | 2018-12-05 19:50:23 +0000 |
|---|---|---|
| committer | Maxime Ripard <[email protected]> | 2019-02-19 10:08:41 +0000 |
| commit | 1220935be2bb62b3aef6740f29e954bbad9b1845 (patch) | |
| tree | 0336603e7d00c8131d53fdff64d75e3816acc9db /drivers/gpu/drm/imx/imx-drm-core.c | |
| parent | drm: vc4: Switch to use drm_gem_object reservation_object (diff) | |
| download | kernel-1220935be2bb62b3aef6740f29e954bbad9b1845.tar.gz kernel-1220935be2bb62b3aef6740f29e954bbad9b1845.zip | |
drm: imx: 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 this is.
Cc: Philipp Zabel <[email protected]>
Cc: David Airlie <[email protected]>
Cc: [email protected]
Signed-off-by: Rob Herring <[email protected]>
Acked-by: Philipp Zabel <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
| -rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 44da0f5d0ed9..4d8e7685706e 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -189,7 +189,7 @@ static int compare_of(struct device *dev, void *data) } /* Special case for LDB, one device for two channels */ - if (of_node_cmp(np->name, "lvds-channel") == 0) { + if (of_node_name_eq(np, "lvds-channel")) { np = of_get_parent(np); of_node_put(np); } |
