summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2024-08-05 16:20:20 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-13 11:34:52 +0200
commitabfceba0a7a246ac082bf569807738ff7416f59f (patch)
tree1c09055836b193e276c542a89298bbeba5b4d6d9 /arch
parent7c626ce4bae1ac14f60076d00eafe71af30450ba (diff)
ARM: riscpc: ecard: Fix the build
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-rpc/ecard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c
index c30df1097c52..9f7454b8efa7 100644
--- a/arch/arm/mach-rpc/ecard.c
+++ b/arch/arm/mach-rpc/ecard.c
@@ -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);