Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

reset: sti: simplify driver's config and build

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>

authored by

Lukas Bulwahn and committed by
Philipp Zabel
20a6a4d7 da46de51

+1 -7
-4
drivers/reset/sti/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 if ARCH_STI 3 3 4 - config STI_RESET_SYSCFG 5 - bool 6 - 7 4 config STIH407_RESET 8 5 bool 9 - select STI_RESET_SYSCFG 10 6 11 7 endif
+1 -3
drivers/reset/sti/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - obj-$(CONFIG_STI_RESET_SYSCFG) += reset-syscfg.o 3 - 4 - obj-$(CONFIG_STIH407_RESET) += reset-stih407.o 2 + obj-$(CONFIG_STIH407_RESET) += reset-stih407.o reset-syscfg.o