diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2021-02-22 13:09:55 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2021-02-22 13:09:55 +0000 |
commit | 90e53c5e09251edb2cee367f6cb472e4bac121f2 (patch) | |
tree | 797296eb8ef5de54a6ec919c0c1f7e1940262c4e /drivers/vfio/platform/vfio_amba.c | |
parent | fd749fe4bcb00ad80d9eece709f804bb4ac6bf1e (diff) | |
parent | 860660fd829e64d4deb255fac9d73ab84a1440c3 (diff) |
Merge branch 'devel-stable' into for-linus
Diffstat (limited to 'drivers/vfio/platform/vfio_amba.c')
-rw-r--r-- | drivers/vfio/platform/vfio_amba.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/vfio/platform/vfio_amba.c b/drivers/vfio/platform/vfio_amba.c index 9636a2afaecd..3626c2150101 100644 --- a/drivers/vfio/platform/vfio_amba.c +++ b/drivers/vfio/platform/vfio_amba.c @@ -71,18 +71,13 @@ static int vfio_amba_probe(struct amba_device *adev, const struct amba_id *id) return ret; } -static int vfio_amba_remove(struct amba_device *adev) +static void vfio_amba_remove(struct amba_device *adev) { - struct vfio_platform_device *vdev; - - vdev = vfio_platform_remove_common(&adev->dev); - if (vdev) { - kfree(vdev->name); - kfree(vdev); - return 0; - } + struct vfio_platform_device *vdev = + vfio_platform_remove_common(&adev->dev); - return -EINVAL; + kfree(vdev->name); + kfree(vdev); } static const struct amba_id pl330_ids[] = { |