riscv: call pm_power_off from machine_halt / machine_power_off

This way any override of pm_power_off also affects the halt path and
we don't need additional infrastructure for it.

Also remove the pm_power_off export - at least for now we don't have
any modular drivers overriding it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
Christoph Hellwig 2019-04-15 11:14:42 +02:00 • committed by Palmer Dabbelt
commit bf0102a0fd
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41