Skip to content

Commit e362547

Browse files
Uwe Kleine-Königsudeep-holla
authored andcommitted
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 <u.kleine-koenig@pengutronix.de> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
1 parent 9274307 commit e362547

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • drivers/firmware/arm_ffa

drivers/firmware/arm_ffa/bus.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ static int ffa_device_probe(struct device *dev)
4646
struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver);
4747
struct ffa_device *ffa_dev = to_ffa_dev(dev);
4848

49-
if (!ffa_device_match(dev, dev->driver))
50-
return -ENODEV;
51-
5249
return ffa_drv->probe(ffa_dev);
5350
}
5451

0 commit comments

Comments
 (0)