ARM: socfpga: fix missing RESET_CONTROLLER
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 7 Feb 2022 08:44:04 +0000 (09:44 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 7 Feb 2022 09:54:42 +0000 (03:54 -0600)
commit3037b174b1876aae6b2d1a27a878c681c78ccadc
tree0430c79da18fe620ae3fbc518cbc76e1e406da60
parente783362eb54cd99b2cac8b3a9aeac942e6f6ac07
ARM: socfpga: fix missing RESET_CONTROLLER

The SocFPGA machine since commit b3ca9888f35f ("reset: socfpga: add an
early reset driver for SoCFPGA") uses reset controller, so it should
select RESET_CONTROLLER explicitly.  Selecting ARCH_HAS_RESET_CONTROLLER
is not enough because it affects only default choice still allowing a
non-buildable configuration:

  /usr/bin/arm-linux-gnueabi-ld: arch/arm/mach-socfpga/socfpga.o: in function `socfpga_init_irq':
  arch/arm/mach-socfpga/socfpga.c:56: undefined reference to `socfpga_reset_init'

Reported-by: kernel test robot <lkp@intel.com>
Cc: <stable@vger.kernel.org>
Fixes: b3ca9888f35f ("reset: socfpga: add an early reset driver for SoCFPGA")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/mach-socfpga/Kconfig