diff options
author | Lizhe <sensor1010@163.com> | 2023-03-19 12:19:41 +0800 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2023-03-27 17:19:52 +0200 |
commit | 85206bf95313c33a244d6ea4304b01ade95b8b05 (patch) | |
tree | bfe87b7e1ed2a5d3d127786f20f449d944c19905 /drivers/s390/crypto | |
parent | e7615c9225d7c7562d1cd95ba8cc2cbf38c3d29e (diff) | |
download | linux-stable-85206bf95313c33a244d6ea4304b01ade95b8b05.tar.gz linux-stable-85206bf95313c33a244d6ea4304b01ade95b8b05.tar.bz2 linux-stable-85206bf95313c33a244d6ea4304b01ade95b8b05.zip |
s390/vfio-ap: remove redundant driver match function
If there is no driver match function, the driver core assumes that each
candidate pair (driver, device) matches, see driver_match_device().
Drop the matrix bus's match function that always returned 1 and so
implements the same behaviour as when there is no match function
Signed-off-by: Lizhe <sensor1010@163.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Link: https://lore.kernel.org/r/20230319041941.259830-1-sensor1010@163.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390/crypto')
-rw-r--r-- | drivers/s390/crypto/vfio_ap_drv.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/s390/crypto/vfio_ap_drv.c b/drivers/s390/crypto/vfio_ap_drv.c index 997b524bdd2b..9341c000da41 100644 --- a/drivers/s390/crypto/vfio_ap_drv.c +++ b/drivers/s390/crypto/vfio_ap_drv.c @@ -59,14 +59,8 @@ static void vfio_ap_matrix_dev_release(struct device *dev) kfree(matrix_dev); } -static int matrix_bus_match(struct device *dev, struct device_driver *drv) -{ - return 1; -} - static struct bus_type matrix_bus = { .name = "matrix", - .match = &matrix_bus_match, }; static struct device_driver matrix_driver = { |