diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-10-07 21:32:40 -0700 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-10-29 14:05:51 -0500 |
commit | 50dae85c713e11c52abf25dfd283db336257dbc5 (patch) | |
tree | 86f3962745a830eb21a08bf78fd1f3ec590103cb /drivers | |
parent | 3f616b6053517927f564fc8ed6dc4a87bd39e857 (diff) | |
download | u-boot-imx-50dae85c713e11c52abf25dfd283db336257dbc5.zip u-boot-imx-50dae85c713e11c52abf25dfd283db336257dbc5.tar.gz u-boot-imx-50dae85c713e11c52abf25dfd283db336257dbc5.tar.bz2 |
dm: core: Remove unnecessary codes in uclass_pre_remove_device()
dev->uclass->uc_drv->per_device_auto_alloc_size is to be freed in
device_free(), so is dev->seq. Remove these unnecessary codes.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/uclass.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index e800c28..1af0947 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -523,22 +523,15 @@ int uclass_post_probe_device(struct udevice *dev) #if CONFIG_IS_ENABLED(DM_DEVICE_REMOVE) int uclass_pre_remove_device(struct udevice *dev) { - struct uclass_driver *uc_drv; struct uclass *uc; int ret; uc = dev->uclass; - uc_drv = uc->uc_drv; if (uc->uc_drv->pre_remove) { ret = uc->uc_drv->pre_remove(dev); if (ret) return ret; } - if (uc_drv->per_device_auto_alloc_size) { - free(dev->uclass_priv); - dev->uclass_priv = NULL; - } - dev->seq = -1; return 0; } |