diff options
author | Christoph Hellwig <hch@lst.de> | 2022-09-23 11:26:44 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2022-10-04 12:06:58 -0600 |
commit | cbf3bb28aaeaee425ca7b9c537a3efff1f8c98ae (patch) | |
tree | dc6a12ff81eed0ecb9c3c48b13b89c267188098c /include/linux/mdev.h | |
parent | vfio/mdev: simplify mdev_type handling (diff) | |
download | linux-cbf3bb28aaeaee425ca7b9c537a3efff1f8c98ae.tar.gz linux-cbf3bb28aaeaee425ca7b9c537a3efff1f8c98ae.tar.bz2 linux-cbf3bb28aaeaee425ca7b9c537a3efff1f8c98ae.zip |
vfio/mdev: remove mdev_from_dev
Just open code it in the only caller.
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-7-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/mdev.h')
-rw-r--r-- | include/linux/mdev.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mdev.h b/include/linux/mdev.h index 19bc93c10e8c..4f558de52fd9 100644 --- a/include/linux/mdev.h +++ b/include/linux/mdev.h @@ -102,9 +102,5 @@ static inline struct device *mdev_dev(struct mdev_device *mdev) { return &mdev->dev; } -static inline struct mdev_device *mdev_from_dev(struct device *dev) -{ - return dev->bus == &mdev_bus_type ? to_mdev_device(dev) : NULL; -} #endif /* MDEV_H */ |