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.

mfd: stmpe-spi: Use module_spi_driver to remove boilerplate

Driver implements feature of module_spi_driver() manually. Replace it by
that macro instead.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250725070752.338376-2-alexander.stein@ew.tq-group.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Alexander Stein and committed by
Lee Jones
57b1fec0 57bf2a31

+1 -12
+1 -12
drivers/mfd/stmpe-spi.c
··· 141 141 .remove = stmpe_spi_remove, 142 142 .id_table = stmpe_spi_id, 143 143 }; 144 - 145 - static int __init stmpe_init(void) 146 - { 147 - return spi_register_driver(&stmpe_spi_driver); 148 - } 149 - subsys_initcall(stmpe_init); 150 - 151 - static void __exit stmpe_exit(void) 152 - { 153 - spi_unregister_driver(&stmpe_spi_driver); 154 - } 155 - module_exit(stmpe_exit); 144 + module_spi_driver(stmpe_spi_driver); 156 145 157 146 MODULE_DESCRIPTION("STMPE MFD SPI Interface Driver"); 158 147 MODULE_AUTHOR("Viresh Kumar <vireshk@kernel.org>");