From: Mateusz Mandera Date: Wed, 22 Apr 2009 09:24:28 +0000 (-0700) Subject: 8390p: Get rid of init_module/cleanup_module X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~30145^2~580 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=362b76edb78923face033e18e4ffc85df8db0f28;p=mirror_ubuntu-focal-kernel.git 8390p: Get rid of init_module/cleanup_module This trivial patch just "gets rid of" init_module and cleanup_module from drivers/net/8390p.c Signed-off-by: Mateusz Mandera Signed-off-by: David S. Miller --- diff --git a/drivers/net/8390p.c b/drivers/net/8390p.c index 6ec11dafdb18..cacdd86a27d0 100644 --- a/drivers/net/8390p.c +++ b/drivers/net/8390p.c @@ -91,16 +91,15 @@ void NS8390p_init(struct net_device *dev, int startp) } EXPORT_SYMBOL(NS8390p_init); -#if defined(MODULE) - -int init_module(void) +static int __init 8390p_init_module(void) { return 0; } -void cleanup_module(void) +static void __exit 8390p_cleanup_module(void) { } -#endif /* MODULE */ +module_init(8390p_init_module); +module_exit(8390p_cleanup_module); MODULE_LICENSE("GPL");