mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
wan: hostess_sv11: use module_init/module_exit helpers
This is one of very few drivers using the old init_module/cleanup_module function names. Change it over to the modern method. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
72bcad5393
commit
d52c1069d6
1 changed files with 4 additions and 2 deletions
|
@ -319,16 +319,18 @@ MODULE_DESCRIPTION("Modular driver for the Comtrol Hostess SV11");
|
||||||
|
|
||||||
static struct z8530_dev *sv11_unit;
|
static struct z8530_dev *sv11_unit;
|
||||||
|
|
||||||
int init_module(void)
|
static int sv11_module_init(void)
|
||||||
{
|
{
|
||||||
sv11_unit = sv11_init(io, irq);
|
sv11_unit = sv11_init(io, irq);
|
||||||
if (!sv11_unit)
|
if (!sv11_unit)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
module_init(sv11_module_init);
|
||||||
|
|
||||||
void cleanup_module(void)
|
static void sv11_module_cleanup(void)
|
||||||
{
|
{
|
||||||
if (sv11_unit)
|
if (sv11_unit)
|
||||||
sv11_shutdown(sv11_unit);
|
sv11_shutdown(sv11_unit);
|
||||||
}
|
}
|
||||||
|
module_exit(sv11_module_cleanup);
|
||||||
|
|
Loading…
Add table
Reference in a new issue