Re: [PATCH v4] ata/pata_buddha: Probe via modalias instead of initcall

From: Max Staudt
Date: Mon Aug 12 2019 - 06:55:11 EST


Hi Bartlomiej,

Thanks for your feedback!


On 08/12/2019 12:42 PM, Bartlomiej Zolnierkiewicz wrote:
>
> ide/buddha driver cannot be unloaded currently (it lacks module_exit()).
>
> [... snip ...]
>
> It should work exactly like the old code in case of X-Surf,
> what do we need to release?


So what shall I do? Once an X-Surf has been detected, we refuse to unload, and therefore we never have to release X-Surf resources? That would simplify things a lot.

What's a good way to do that, given that we now have module_exit() defined and an exit function is void?


Thanks,
Max