summaryrefslogtreecommitdiff
path: root/drivers/core
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-04 11:58:15 -0600
committerSimon Glass <sjg@chromium.org>2016-07-14 20:40:24 -0600
commitfd1c2d9b6a3a9b41ae070ca47361bd6cc6aaaf09 (patch)
treed0b5a714bc52a00516b0acb7dfc8d141154a70c6 /drivers/core
parent7d23b9cf2b1a5a86f7e89a443e3a2de9dac8a9ad (diff)
downloadu-boot-imx-fd1c2d9b6a3a9b41ae070ca47361bd6cc6aaaf09.zip
u-boot-imx-fd1c2d9b6a3a9b41ae070ca47361bd6cc6aaaf09.tar.gz
u-boot-imx-fd1c2d9b6a3a9b41ae070ca47361bd6cc6aaaf09.tar.bz2
dm: core: Rename DM_NAME_ALLOCED to DM_FLAG_NAME_ALLOCED
This is a flag. Adjust the name to be consistent with the other flags. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r--drivers/core/device-remove.c2
-rw-r--r--drivers/core/device.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c
index 0e56b23..a7f77b4 100644
--- a/drivers/core/device-remove.c
+++ b/drivers/core/device-remove.c
@@ -112,7 +112,7 @@ int device_unbind(struct udevice *dev)
devres_release_all(dev);
- if (dev->flags & DM_NAME_ALLOCED)
+ if (dev->flags & DM_FLAG_NAME_ALLOCED)
free((char *)dev->name);
free(dev);
diff --git a/drivers/core/device.c b/drivers/core/device.c
index d8f9d5b..6967c3d 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -738,7 +738,7 @@ bool device_is_last_sibling(struct udevice *dev)
void device_set_name_alloced(struct udevice *dev)
{
- dev->flags |= DM_NAME_ALLOCED;
+ dev->flags |= DM_FLAG_NAME_ALLOCED;
}
int device_set_name(struct udevice *dev, const char *name)