On Fri, 07 Jun 2019, Stefan Mavrodiev wrote: > 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: Stefan Mavrodiev <[email protected]> > --- > Changes is v3: > - Add explanation comments > Changes in v2: > - Initial release actually > > drivers/mfd/rk808.c | 17 +++++++++++------ > include/linux/mfd/rk808.h | 1 + > 2 files changed, 12 insertions(+), 6 deletions(-)
Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog

