瀏覽代碼

reset: hi6220: allow to compile test driver on other architectures

Also remove the RESET_CONTROLLER dependency, this Kconfig file is
included inside the menuconfig already.

Cc: Chen Feng <puck.chen@hisilicon.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Philipp Zabel 9 年之前
父節點
當前提交
cddb480016
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      drivers/reset/Makefile
  2. 2 1
      drivers/reset/hisilicon/Kconfig

+ 1 - 1
drivers/reset/Makefile

@@ -1,6 +1,6 @@
 obj-y += core.o
+obj-y += hisilicon/
 obj-$(CONFIG_ARCH_STI) += sti/
-obj-$(CONFIG_ARCH_HISI) += hisilicon/
 obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
 obj-$(CONFIG_RESET_BERLIN) += reset-berlin.o
 obj-$(CONFIG_RESET_LPC18XX) += reset-lpc18xx.o

+ 2 - 1
drivers/reset/hisilicon/Kconfig

@@ -1,5 +1,6 @@
 config COMMON_RESET_HI6220
 	tristate "Hi6220 Reset Driver"
-	depends on (ARCH_HISI && RESET_CONTROLLER)
+	depends on ARCH_HISI || COMPILE_TEST
+	default ARCH_HISI
 	help
 	  Build the Hisilicon Hi6220 reset driver.