Commit 38e0c992 authored by Sudeep Holla's avatar Sudeep Holla
Browse files

firmware: arm_scmi: Simplify device probe function on the bus

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.


Suggested-by: default avatarUwe Kleine-König <>
Tested-by: default avatarCristian Marussi <>
Reviewed-by: default avatarCristian Marussi <>
Acked-by: default avatarUwe Kleine-König <>
Signed-off-by: default avatarSudeep Holla <>
parent e73f0f0e
......@@ -104,11 +104,6 @@ static int scmi_dev_probe(struct device *dev)
struct scmi_driver *scmi_drv = to_scmi_driver(dev->driver);
struct scmi_device *scmi_dev = to_scmi_dev(dev);
const struct scmi_device_id *id;
id = scmi_dev_match_id(scmi_dev, scmi_drv);
if (!id)
return -ENODEV;
if (!scmi_dev->handle)
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