projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: ehci-atmel: Remove unnecessary clock calling
[oweals/u-boot.git]
/
drivers
/
core
/
device-remove.c
diff --git
a/drivers/core/device-remove.c
b/drivers/core/device-remove.c
index e1714b2202b64145291eabd024206e261d57e0f3..a7f77b4a21dc33efbdc62b2983de5fb970cd8979 100644
(file)
--- a/
drivers/core/device-remove.c
+++ b/
drivers/core/device-remove.c
@@
-112,6
+112,8
@@
int device_unbind(struct udevice *dev)
devres_release_all(dev);
+ if (dev->flags & DM_FLAG_NAME_ALLOCED)
+ free((char *)dev->name);
free(dev);
return 0;