vfio: Rearrange functions to get vfio_group from dev
authorKirti Wankhede <kwankhede@nvidia.com>
Wed, 16 Nov 2016 20:46:15 +0000 (02:16 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 17 Nov 2016 15:24:52 +0000 (08:24 -0700)
commit7ed3ea8a71187a4569eb65f647ea4af0cdb9a856
treecbf6f007984098469e7aa5e5ec1184187bf63921
parentfa3da00cb8c0d403030f4805ae615b444f0d2f3c
vfio: Rearrange functions to get vfio_group from dev

This patch rearranges functions to get vfio_group from device

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Neo Jia <cjia@nvidia.com>
Reviewed-by: Jike Song <jike.song@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c