sunxi: Avoid duplicate reset_cpu with SYSRESET enabled
authorSamuel Holland <samuel@sholland.org>
Thu, 4 Nov 2021 03:55:15 +0000 (22:55 -0500)
committerStefan Roese <sr@denx.de>
Thu, 4 Nov 2021 07:57:19 +0000 (08:57 +0100)
commit6e19dc84c14b3407dfc02d218244d1b3a9fbca3e
tree16ced77068fe2b5e80b446b7a956c449280b6fe0
parenta8f63d18bbb0a3e1456ac833e748d68f0ea1eece
sunxi: Avoid duplicate reset_cpu with SYSRESET enabled

The sysreset uclass unconditionally provides a definition of the
reset_cpu() function. So does the sunxi board code. Fix the build with
SYSRESET enabled by omitting the function from the board code in that
case. The code still needs to be kept around for use in SPL.

Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-sunxi/board.c