Skip to content
Commit 76304994 authored by Stefan Mavrodiev's avatar Stefan Mavrodiev Committed by Lee Jones
Browse files

mfd: rk808: Check pm_power_off pointer



The function pointer pm_power_off may point to function from other
module (PSCI for example). If rk808 is removed, pm_power_off is
overwritten to NULL and the system cannot be powered off.

This patch checks if pm_power_off points to a module function.

Signed-off-by: default avatarStefan Mavrodiev <stefan@olimex.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 554e937e
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