X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fblock%2Fsandbox.c;h=34d1c638bc7788755f10b76154e513ae1ec3c806;hb=380e86f361e4e2aef83295972863654fde157560;hp=ac28f834724490b23670ac3a3361310f53ee5c0a;hpb=4b6e1fda107e5244e80ebc41865650ac2873dc88;p=u-boot diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index ac28f83472..34d1c638bc 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -98,7 +98,7 @@ int host_dev_bind(int devnum, char *filename) /* Remove and unbind the old device, if any */ ret = blk_get_device(IF_TYPE_HOST, devnum, &dev); if (ret == 0) { - ret = device_remove(dev); + ret = device_remove(dev, DM_REMOVE_NORMAL); if (ret) return ret; ret = device_unbind(dev);