mirror of https://gitee.com/openkylin/linux.git
d9350f21e5
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> |
||
---|---|---|
.. | ||
Makefile | ||
base.c | ||
bus.c | ||
clock.c | ||
common.h | ||
driver.c | ||
perf.c | ||
power.c | ||
scmi_pm_domain.c | ||
sensors.c |