reset: sti: simplify driver's config and build
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Thu, 30 Mar 2023 11:23:47 +0000 (13:23 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 May 2023 07:28:31 +0000 (09:28 +0200)
With commit 64933513e461 ("reset: sti: Remove STiH415/6 reset support"),
there is only one sti reset driver left and there no need to define a
dedicated config STI_RESET_SYSCFG, which is selected by the config for the
STiH407 reset driver.

Simply add reset-syscfg.c to the build for the STiH407 reset driver.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20230330112347.31137-2-lukas.bulwahn@gmail.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/sti/Kconfig
drivers/reset/sti/Makefile

index 9455e1c7a5aa661fce4d9387bcf2c75d35b416b2..a2622e146b8b3621f659c3ec1ddfa599b120b6a8 100644 (file)
@@ -1,11 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 if ARCH_STI
 
-config STI_RESET_SYSCFG
-       bool
-
 config STIH407_RESET
        bool
-       select STI_RESET_SYSCFG
 
 endif
index 3eb30f7e8e3dfb5d4ff05a1727e96b78b75758b0..5e833496cee3beeace35ae8d04495c6bf8154f59 100644 (file)
@@ -1,4 +1,2 @@
 # SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_STI_RESET_SYSCFG) += reset-syscfg.o
-
-obj-$(CONFIG_STIH407_RESET) += reset-stih407.o
+obj-$(CONFIG_STIH407_RESET) += reset-stih407.o reset-syscfg.o