diff options
Diffstat (limited to 'drivers/vfio/mdev/mdev_core.c')
-rw-r--r-- | drivers/vfio/mdev/mdev_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c index bf3b3b0b3d2b..30d05304241e 100644 --- a/drivers/vfio/mdev/mdev_core.c +++ b/drivers/vfio/mdev/mdev_core.c | |||
@@ -30,6 +30,12 @@ static struct class_compat *mdev_bus_compat_class; | |||
30 | static LIST_HEAD(mdev_list); | 30 | static LIST_HEAD(mdev_list); |
31 | static DEFINE_MUTEX(mdev_list_lock); | 31 | static DEFINE_MUTEX(mdev_list_lock); |
32 | 32 | ||
33 | struct device *mdev_parent_dev(struct mdev_device *mdev) | ||
34 | { | ||
35 | return mdev->parent->dev; | ||
36 | } | ||
37 | EXPORT_SYMBOL(mdev_parent_dev); | ||
38 | |||
33 | static int _find_mdev_device(struct device *dev, void *data) | 39 | static int _find_mdev_device(struct device *dev, void *data) |
34 | { | 40 | { |
35 | struct mdev_device *mdev; | 41 | struct mdev_device *mdev; |