iommu/virtio: Do not dereference fwnode in struct device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 1 Aug 2022 16:51:42 +0000 (19:51 +0300)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Sep 2022 08:38:22 +0000 (10:38 +0200)
commit0c9ccaf24efa5b8f728445272ebc84754da2a512
tree3ccbb66b6a5174ea1e97a55259876420a3ddefde
parent7e18e42e4b280c85b76967a9106a13ca61c16179
iommu/virtio: Do not dereference fwnode in struct device

In order to make the underneath API easier to change in the future,
prevent users from dereferencing fwnode from struct device.
Instead, use the specific device_match_fwnode() API for that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20220801165142.20898-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/virtio-iommu.c