Commit e362547a authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Sudeep Holla
Browse files

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.


Signed-off-by: default avatarUwe Kleine-König <>
Signed-off-by: default avatarSudeep Holla <>
parent 92743071
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment