diff options
| author | Simon Glass <[email protected]> | 2020-12-19 10:40:14 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2021-01-05 12:24:41 -0700 |
| commit | f10643cf8a4ca006d1ad194e930cd292fd869d17 (patch) | |
| tree | 66cd9383fc5dbd8e02f999d1db5562995f441b21 /drivers/core/device.c | |
| parent | 7d14ee443ca674314e0fe5c3e25f48e52a8fd5ee (diff) | |
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 <[email protected]>
Diffstat (limited to 'drivers/core/device.c')
| -rw-r--r-- | drivers/core/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index bd4ecc9e24d..6a9bee093d0 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -68,7 +68,7 @@ static int device_bind_common(struct udevice *parent, const struct driver *drv, dev_set_plat(dev, plat); dev->driver_data = driver_data; dev->name = name; - dev->node = node; + dev_set_ofnode(dev, node); dev->parent = parent; dev->driver = drv; dev->uclass = uc; |
