Skip to content

Commit 996737e

Browse files
clementlegerpH5
authored andcommitted
reset: mchp: sparx5: Allow building as a module
This reset controller can be used by the LAN966x PCI device. The LAN966x PCI device driver can be built as a module and this reset controller driver has no reason to be a builtin driver in that case. Signed-off-by: Clément Léger <clement.leger@bootlin.com> Signed-off-by: Herve Codina <herve.codina@bootlin.com> Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Link: https://lore.kernel.org/r/20241014124636.24221-6-herve.codina@bootlin.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
1 parent eba0ded commit 996737e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/reset/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ config RESET_LPC18XX
146146
This enables the reset controller driver for NXP LPC18xx/43xx SoCs.
147147

148148
config RESET_MCHP_SPARX5
149-
bool "Microchip Sparx5 reset driver"
149+
tristate "Microchip Sparx5 reset driver"
150150
depends on ARCH_SPARX5 || SOC_LAN966 || MCHP_LAN966X_PCI || COMPILE_TEST
151151
default y if SPARX5_SWITCH
152152
select MFD_SYSCON

drivers/reset/reset-microchip-sparx5.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ static const struct of_device_id mchp_sparx5_reset_of_match[] = {
191191
},
192192
{ }
193193
};
194+
MODULE_DEVICE_TABLE(of, mchp_sparx5_reset_of_match);
194195

195196
static struct platform_driver mchp_sparx5_reset_driver = {
196197
.probe = mchp_sparx5_reset_probe,
@@ -213,3 +214,4 @@ postcore_initcall(mchp_sparx5_reset_init);
213214

214215
MODULE_DESCRIPTION("Microchip Sparx5 switch reset driver");
215216
MODULE_AUTHOR("Steen Hegelund <steen.hegelund@microchip.com>");
217+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)