diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2021-06-24 10:50:58 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2021-07-12 14:16:18 +0100 |
commit | 38e0c99249f8f12e1450234a0f7fb357a1b73843 (patch) | |
tree | a91bc9ec2e8f7eee26546cd5f9a88867ed0b48ce /drivers/firmware/arm_scmi | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) | |
download | linux-stable-38e0c99249f8f12e1450234a0f7fb357a1b73843.tar.gz linux-stable-38e0c99249f8f12e1450234a0f7fb357a1b73843.tar.bz2 linux-stable-38e0c99249f8f12e1450234a0f7fb357a1b73843.zip |
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.
Link: https://lore.kernel.org/r/20210624095059.4010157-1-sudeep.holla@arm.com
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Cristian Marussi <cristian.marussi@arm.com>
Reviewed-by: Cristian Marussi <cristian.marussi@arm.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_scmi')
-rw-r--r-- | drivers/firmware/arm_scmi/bus.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/firmware/arm_scmi/bus.c b/drivers/firmware/arm_scmi/bus.c index 784cf0027da3..dc113ad37ad9 100644 --- a/drivers/firmware/arm_scmi/bus.c +++ b/drivers/firmware/arm_scmi/bus.c @@ -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) return -EPROBE_DEFER; |