ARM: riscpc: ecard: Fix the build
authorBart Van Assche <bvanassche@acm.org>
Mon, 5 Aug 2024 23:20:20 +0000 (16:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Aug 2024 09:34:52 +0000 (11:34 +0200)
Fix a recently introduced build failure.

Cc: Russell King <rmk+kernel@armlinux.org.uk>
Fixes: d69d80484598 ("driver core: have match() callback in struct bus_type take a const *")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240805232026.65087-2-bvanassche@acm.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-rpc/ecard.c

index c30df1097c524b4c701834e093775662802d9341..9f7454b8efa79e9c3c1add236242326d0e946710 100644 (file)
@@ -1109,7 +1109,7 @@ void ecard_remove_driver(struct ecard_driver *drv)
        driver_unregister(&drv->drv);
 }
 
-static int ecard_match(struct device *_dev, struct device_driver *_drv)
+static int ecard_match(struct device *_dev, const struct device_driver *_drv)
 {
        struct expansion_card *ec = ECARD_DEV(_dev);
        struct ecard_driver *drv = ECARD_DRV(_drv);