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/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 9274307 commit e362547

File tree

1 file changed

+0
-3
lines changed
  • drivers/firmware/arm_ffa

1 file changed

+0
-3
lines changed

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)