# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/09/17522100
- Thread: https://ratatoskr.run/linux-ide/2026/09/17520022/t.md

```text
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
```
