linux/drivers/firmware/arm_scmi
Aditya Pakki d9350f21e5 firmware: arm_scmi: replace of_match_device->data with of_device_get_match_data()
of_match_device can return NULL if no matching device is found though
it's highly unlikely to happen in scmi_probe as it's called only if
a valid match is found.

However we can use of_device_get_match_data() instead of
of_match_device()->data to handle NULL pointer checks and return -EINVAL
in such a scenario.

Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2019-04-12 18:11:18 +01:00
..
Makefile firmware: arm_scmi: add device power domain support using genpd 2018-02-28 16:37:57 +00:00
base.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
bus.c firmware: arm_scmi: provide the mandatory device release callback 2019-01-30 11:34:42 +01:00
clock.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
common.h firmware: arm_scmi: drop unused `con_priv` structure member 2018-05-10 10:51:58 +01:00
driver.c firmware: arm_scmi: replace of_match_device->data with of_device_get_match_data() 2019-04-12 18:11:18 +01:00
perf.c firmware: arm_scmi: add a getter for power of performance states 2018-09-10 17:37:06 +01:00
power.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
scmi_pm_domain.c firmware: arm_scmi: add device power domain support using genpd 2018-02-28 16:37:57 +00:00
sensors.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00