mfd: rk808: Stop using syscore ops
authorRobin Murphy <robin.murphy@arm.com>
Sun, 12 Jan 2020 01:55:02 +0000 (01:55 +0000)
committerLee Jones <lee.jones@linaro.org>
Mon, 30 Mar 2020 06:35:27 +0000 (07:35 +0100)
commit90df3a8230ef8b02370bb2eb0354fba57ecb2b9d
tree874459046c1411090274bc103c034ff84534b13c
parent08e8c0d9e9fa78e62a51d5d7af608a70d29ca473
mfd: rk808: Stop using syscore ops

Setting the SLEEP pin to its shutdown function for appropriate PMICs
doesn't need to happen in single-CPU context, so there's really no point
involving the syscore machinery. Hook it up to the standard driver model
shutdown method instead. This also obviates the issue that the syscore
ops weren't being unregistered on probe failure or module removal.

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