From: Uwe Kleine-König Date: Mon, 21 Jun 2021 20:16:52 +0000 (+0200) Subject: firmware: arm_ffa: Simplify probe function X-Git-Tag: v5.15~693^2~9^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e362547addc39e4bb18ad5bdfd59ce4d512d0c08;p=platform%2Fkernel%2Flinux-starfive.git firmware: arm_ffa: Simplify probe function When the driver core calls the probe callback it already checked that the devices match, so there is no need to call the match callback again. Link: https://lore.kernel.org/r/20210621201652.127611-2-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König Signed-off-by: Sudeep Holla --- diff --git a/drivers/firmware/arm_ffa/bus.c b/drivers/firmware/arm_ffa/bus.c index d2cc243..00fe595 100644 --- a/drivers/firmware/arm_ffa/bus.c +++ b/drivers/firmware/arm_ffa/bus.c @@ -46,9 +46,6 @@ static int ffa_device_probe(struct device *dev) struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver); struct ffa_device *ffa_dev = to_ffa_dev(dev); - if (!ffa_device_match(dev, dev->driver)) - return -ENODEV; - return ffa_drv->probe(ffa_dev); }