* [PATCH net-next] drivers/net: strip unused module code from sun3_82586.c
@ 2012-01-27 23:55 Paul Gortmaker
2012-01-28 0:46 ` Sam Creasey
2012-01-30 17:55 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Paul Gortmaker @ 2012-01-27 23:55 UTC (permalink / raw)
To: sammy; +Cc: netdev, Paul Gortmaker
This code is clearly unused, since it has a #error right
in it. Given the vintage of sun3 hardware, it is probably
safe to assume that there is little interest in adding new
functionality to the driver now, so just delete the unused
block of code.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
diff --git a/drivers/net/ethernet/i825xx/sun3_82586.c b/drivers/net/ethernet/i825xx/sun3_82586.c
index 6ef5e11..296cf8a 100644
--- a/drivers/net/ethernet/i825xx/sun3_82586.c
+++ b/drivers/net/ethernet/i825xx/sun3_82586.c
@@ -28,7 +28,6 @@ static int automatic_resume = 0; /* experimental .. better should be zero */
static int rfdadd = 0; /* rfdadd=1 may be better for 8K MEM cards */
static int fifo=0x8; /* don't change */
-#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
@@ -1151,28 +1150,6 @@ static void set_multicast_list(struct net_device *dev)
netif_wake_queue(dev);
}
-#ifdef MODULE
-#error This code is not currently supported as a module
-static struct net_device *dev_sun3_82586;
-
-int init_module(void)
-{
- dev_sun3_82586 = sun3_82586_probe(-1);
- if (IS_ERR(dev_sun3_82586))
- return PTR_ERR(dev_sun3_82586);
- return 0;
-}
-
-void cleanup_module(void)
-{
- unsigned long ioaddr = dev_sun3_82586->base_addr;
- unregister_netdev(dev_sun3_82586);
- release_region(ioaddr, SUN3_82586_TOTAL_SIZE);
- iounmap((void *)ioaddr);
- free_netdev(dev_sun3_82586);
-}
-#endif /* MODULE */
-
#if 0
/*
* DUMP .. we expect a not running CMD unit and enough space
@@ -1209,5 +1186,3 @@ void sun3_82586_dump(struct net_device *dev,void *ptr)
printk("\n");
}
#endif
-
-MODULE_LICENSE("GPL");
--
1.7.7
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] drivers/net: strip unused module code from sun3_82586.c
2012-01-27 23:55 [PATCH net-next] drivers/net: strip unused module code from sun3_82586.c Paul Gortmaker
@ 2012-01-28 0:46 ` Sam Creasey
2012-01-30 17:55 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Sam Creasey @ 2012-01-28 0:46 UTC (permalink / raw)
To: Paul Gortmaker; +Cc: sammy, netdev
Yeah, that sounds about right...
Signed-off-by: Sam Creasey <sammy@sammy.net>
On Fri, Jan 27, 2012 at 06:55:46PM -0500, Paul Gortmaker wrote:
> This code is clearly unused, since it has a #error right
> in it. Given the vintage of sun3 hardware, it is probably
> safe to assume that there is little interest in adding new
> functionality to the driver now, so just delete the unused
> block of code.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> diff --git a/drivers/net/ethernet/i825xx/sun3_82586.c b/drivers/net/ethernet/i825xx/sun3_82586.c
> index 6ef5e11..296cf8a 100644
> --- a/drivers/net/ethernet/i825xx/sun3_82586.c
> +++ b/drivers/net/ethernet/i825xx/sun3_82586.c
> @@ -28,7 +28,6 @@ static int automatic_resume = 0; /* experimental .. better should be zero */
> static int rfdadd = 0; /* rfdadd=1 may be better for 8K MEM cards */
> static int fifo=0x8; /* don't change */
>
> -#include <linux/module.h>
> #include <linux/kernel.h>
> #include <linux/string.h>
> #include <linux/errno.h>
> @@ -1151,28 +1150,6 @@ static void set_multicast_list(struct net_device *dev)
> netif_wake_queue(dev);
> }
>
> -#ifdef MODULE
> -#error This code is not currently supported as a module
> -static struct net_device *dev_sun3_82586;
> -
> -int init_module(void)
> -{
> - dev_sun3_82586 = sun3_82586_probe(-1);
> - if (IS_ERR(dev_sun3_82586))
> - return PTR_ERR(dev_sun3_82586);
> - return 0;
> -}
> -
> -void cleanup_module(void)
> -{
> - unsigned long ioaddr = dev_sun3_82586->base_addr;
> - unregister_netdev(dev_sun3_82586);
> - release_region(ioaddr, SUN3_82586_TOTAL_SIZE);
> - iounmap((void *)ioaddr);
> - free_netdev(dev_sun3_82586);
> -}
> -#endif /* MODULE */
> -
> #if 0
> /*
> * DUMP .. we expect a not running CMD unit and enough space
> @@ -1209,5 +1186,3 @@ void sun3_82586_dump(struct net_device *dev,void *ptr)
> printk("\n");
> }
> #endif
> -
> -MODULE_LICENSE("GPL");
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] drivers/net: strip unused module code from sun3_82586.c
2012-01-27 23:55 [PATCH net-next] drivers/net: strip unused module code from sun3_82586.c Paul Gortmaker
2012-01-28 0:46 ` Sam Creasey
@ 2012-01-30 17:55 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2012-01-30 17:55 UTC (permalink / raw)
To: paul.gortmaker; +Cc: sammy, netdev
From: Paul Gortmaker <paul.gortmaker@windriver.com>
Date: Fri, 27 Jan 2012 18:55:46 -0500
> This code is clearly unused, since it has a #error right
> in it. Given the vintage of sun3 hardware, it is probably
> safe to assume that there is little interest in adding new
> functionality to the driver now, so just delete the unused
> block of code.
>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-30 17:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 23:55 [PATCH net-next] drivers/net: strip unused module code from sun3_82586.c Paul Gortmaker
2012-01-28 0:46 ` Sam Creasey
2012-01-30 17:55 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox