diff options
author | 2022-09-23 11:26:46 +0200 | |
---|---|---|
committer | 2022-10-04 12:06:58 -0600 | |
commit | 062e720cd209d8091c4f3d118d93973f02209aca (patch) | |
tree | 89b87dfa80ee9699595e55c50e76b4251c69ca95 /include | |
parent | vfio/mdev: unexport mdev_bus_type (diff) | |
download | linux-062e720cd209d8091c4f3d118d93973f02209aca.tar.gz linux-062e720cd209d8091c4f3d118d93973f02209aca.tar.bz2 linux-062e720cd209d8091c4f3d118d93973f02209aca.zip |
vfio/mdev: remove mdev_parent_dev
Just open code the dereferences in the only user.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Link: https://lore.kernel.org/r/20220923092652.100656-9-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mdev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mdev.h b/include/linux/mdev.h index 6c179d2b8927..bbedffcb38d4 100644 --- a/include/linux/mdev.h +++ b/include/linux/mdev.h @@ -95,7 +95,6 @@ void mdev_unregister_parent(struct mdev_parent *parent); int mdev_register_driver(struct mdev_driver *drv); void mdev_unregister_driver(struct mdev_driver *drv); -struct device *mdev_parent_dev(struct mdev_device *mdev); static inline struct device *mdev_dev(struct mdev_device *mdev) { return &mdev->dev; |