summaryrefslogtreecommitdiff
path: root/drivers/block/sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/sandbox.c')
-rw-r--r--drivers/block/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c
index 36c2ff3..34d1c63 100644
--- a/drivers/block/sandbox.c
+++ b/drivers/block/sandbox.c
@@ -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);