power: reset: at91-poweroff: use one poweroff function for at91-poweroff
authorClaudiu.Beznea@microchip.com <Claudiu.Beznea@microchip.com>
Mon, 5 Nov 2018 11:14:23 +0000 (11:14 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 5 Dec 2018 22:18:30 +0000 (23:18 +0100)
commit996463fdb8cdec453a8b56ab6956da40a5af1360
tree5cb5e6ec36a6ea1ffe57406fb685311030412c12
parentd0717d73be810f8c814048502f36cf4e10fe5fce
power: reset: at91-poweroff: use one poweroff function for at91-poweroff

Use only one poweroff function and adapt it to work for both scenarios
(with LPDDR or not). The assignement of pm_power_off was moved at the
end of probe after all initializations are OK. This patch adapt the idea
from commit 4e018c1e9b05 ("power: reset: at91-poweroff: use only one
poweroff function").

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-poweroff.c