summaryrefslogtreecommitdiff
path: root/drivers/vfio/mdev/mdev_driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vfio/mdev/mdev_driver.c')
-rw-r--r--drivers/vfio/mdev/mdev_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vfio/mdev/mdev_driver.c b/drivers/vfio/mdev/mdev_driver.c
index 0d3223aee20b..44c3ba7e56d9 100644
--- a/drivers/vfio/mdev/mdev_driver.c
+++ b/drivers/vfio/mdev/mdev_driver.c
@@ -48,7 +48,7 @@ static int mdev_probe(struct device *dev)
return ret;
if (drv && drv->probe) {
- ret = drv->probe(dev);
+ ret = drv->probe(mdev);
if (ret)
mdev_detach_iommu(mdev);
}
@@ -62,7 +62,7 @@ static int mdev_remove(struct device *dev)
struct mdev_device *mdev = to_mdev_device(dev);
if (drv && drv->remove)
- drv->remove(dev);
+ drv->remove(mdev);
mdev_detach_iommu(mdev);