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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Clément Léger and committed by
Philipp Zabel
996737ef eba0dedd

+3 -1
+1 -1
drivers/reset/Kconfig
··· 146 146 This enables the reset controller driver for NXP LPC18xx/43xx SoCs. 147 147 148 148 config RESET_MCHP_SPARX5 149 - bool "Microchip Sparx5 reset driver" 149 + tristate "Microchip Sparx5 reset driver" 150 150 depends on ARCH_SPARX5 || SOC_LAN966 || MCHP_LAN966X_PCI || COMPILE_TEST 151 151 default y if SPARX5_SWITCH 152 152 select MFD_SYSCON
+2
drivers/reset/reset-microchip-sparx5.c
··· 191 191 }, 192 192 { } 193 193 }; 194 + MODULE_DEVICE_TABLE(of, mchp_sparx5_reset_of_match); 194 195 195 196 static struct platform_driver mchp_sparx5_reset_driver = { 196 197 .probe = mchp_sparx5_reset_probe, ··· 214 213 215 214 MODULE_DESCRIPTION("Microchip Sparx5 switch reset driver"); 216 215 MODULE_AUTHOR("Steen Hegelund <steen.hegelund@microchip.com>"); 216 + MODULE_LICENSE("GPL");