diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 20:40:14 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 22:24:41 +0300 |
commit | f10643cf8a4ca006d1ad194e930cd292fd869d17 (patch) | |
tree | 66cd9383fc5dbd8e02f999d1db5562995f441b21 /drivers/video/nexell_display.c | |
parent | 7d14ee443ca674314e0fe5c3e25f48e52a8fd5ee (diff) | |
download | u-boot-f10643cf8a4ca006d1ad194e930cd292fd869d17.tar.xz |
dm: core: Access device ofnode through functions
At present ofnode is present in the device even if it is never used. With
of-platdata this field is not used, so can be removed. In preparation for
this, change the access to go through inline functions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/nexell_display.c')
-rw-r--r-- | drivers/video/nexell_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c index 00e2c36f37..b47bef3578 100644 --- a/drivers/video/nexell_display.c +++ b/drivers/video/nexell_display.c @@ -416,7 +416,7 @@ static struct nx_display_dev *nx_display_setup(void) __func__); return NULL; } - node = dev->node.of_offset; + node = dev_ofnode(dev).of_offset; if (CONFIG_IS_ENABLED(OF_CONTROL)) { ret = nx_display_parse_dt(dev, dp, plat); |