vfio/platform: remove unneeded parent_module attribute
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Tue, 18 May 2021 19:21:33 +0000 (22:21 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 15 Jun 2021 20:12:15 +0000 (14:12 -0600)
The vfio core driver is now taking refcount on the provider drivers,
remove redundant parent_module attribute from vfio_platform_device
structure.

Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Acked-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20210518192133.59195-3-mgurtovoy@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_amba.c
drivers/vfio/platform/vfio_platform.c
drivers/vfio/platform/vfio_platform_private.h

index f970eb2..badfffe 100644 (file)
@@ -59,7 +59,6 @@ static int vfio_amba_probe(struct amba_device *adev, const struct amba_id *id)
        vdev->flags = VFIO_DEVICE_FLAGS_AMBA;
        vdev->get_resource = get_amba_resource;
        vdev->get_irq = get_amba_irq;
-       vdev->parent_module = THIS_MODULE;
        vdev->reset_required = false;
 
        ret = vfio_platform_probe_common(vdev, &adev->dev);
index e402779..68a1c87 100644 (file)
@@ -50,7 +50,6 @@ static int vfio_platform_probe(struct platform_device *pdev)
        vdev->flags = VFIO_DEVICE_FLAGS_PLATFORM;
        vdev->get_resource = get_platform_resource;
        vdev->get_irq = get_platform_irq;
-       vdev->parent_module = THIS_MODULE;
        vdev->reset_required = reset_required;
 
        ret = vfio_platform_probe_common(vdev, &pdev->dev);
index a5ba82c..dfb834c 100644 (file)
@@ -50,7 +50,6 @@ struct vfio_platform_device {
        u32                             num_irqs;
        int                             refcnt;
        struct mutex                    igate;
-       struct module                   *parent_module;
        const char                      *compat;
        const char                      *acpihid;
        struct module                   *reset_module;