Re: [PATCH] ecard: use module_driver() to avoid repeated boilerplate code

From
Damien Le Moal <dlemoal@kernel.org>
Date
2026-09-07 02:13:10
Also in
linux-arm-kernel, linux-scsi, linux-serial, netdev
Reply to
Ethan Nelson-Moore, 2026-09-06
On 9/6/26 13:01, Ethan Nelson-Moore wrote:
Many Acorn expansion card drivers have module_init and module_exit
functions that only call ecard_register_driver() and
ecard_remove_driver(). The module_driver() macro automatically
generates these functions given the register and unregister functions.
Switch to it to simplify the code.
Would be nice to have this separated into 4 different patches, one for each
subsystem modified.

Anyway, for the ATA bits,

Acked-by: Damien Le Moal <dlemoal@kernel.org>

-- 
Damien Le Moal
Western Digital Research
Thread (4 messages) 4 messages, 4 authors, last reply 2026-09-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help