summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/raspberrypi.c
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-03-22 16:55:03 -0500
committerSudeep Holla <sudeep.holla@arm.com>2019-04-12 18:11:18 +0100
commitd9350f21e5fe2614e1f78ef20c3a3e83c4a36391 (patch)
treea21c7a50b04dfbdf7251c1950cb62d1ed364aa77 /drivers/firmware/raspberrypi.c
parentfa7fe29a645b4da08efe8ff2392898b88f9ded9f (diff)
downloadlinux-d9350f21e5fe2614e1f78ef20c3a3e83c4a36391.tar.gz
linux-d9350f21e5fe2614e1f78ef20c3a3e83c4a36391.tar.bz2
linux-d9350f21e5fe2614e1f78ef20c3a3e83c4a36391.zip
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>
Diffstat (limited to 'drivers/firmware/raspberrypi.c')
0 files changed, 0 insertions, 0 deletions