mfd: rk808: Ensure suspend/resume hooks always work
authorRobin Murphy <robin.murphy@arm.com>
Sun, 12 Jan 2020 01:55:01 +0000 (01:55 +0000)
committerLee Jones <lee.jones@linaro.org>
Mon, 30 Mar 2020 06:35:27 +0000 (07:35 +0100)
commit08e8c0d9e9fa78e62a51d5d7af608a70d29ca473
tree97df37add03cf57b5f3ef224cc9695a152ad6f3b
parentd8f083a302f7f69eecd513ce1aa828cfff41f0cf
mfd: rk808: Ensure suspend/resume hooks always work

The RK809/RK817 suspend/resume hooks should not have to depend on
whether this driver owns the pm_power_off hook, and thus the global
rk808_i2c_client is set - indeed, the GPIO-based control is really
only relevant when PSCI firmware is in charge of power rather than
the kernel. As driver model callbacks, they have an appropriate
device argument to hand, so can just always use that.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rk808.c