net/8390: Fix msg_enable patch snafu
The lib8390 module parameter 'msg_enable' doesn't do anything useful:
it causes an ancient version string to be logged.
Remove redundant code that logs the same string.
In ne.c and wd.c, the value of ei_local->msg_enable is used before
being assigned. Use ne_msg_enable and wd_msg_enable, respectively.
Most of the other 8390 drivers never assign ei_local->msg_enable.
Use the 'msg_enable' module parameter from lib8390 as the default
value.
Eliminate the pointless static and local variables.
Clean up an indentation mistake.
All of these issues originated from the same patch.
Cc: Russell King <linux@armlinux.org.uk>
Fixes: c45f812f02
("8390 : Replace ei_debug with msg_enable/NETIF_MSG_* feature")
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
73219de294
commit
646fe03b0d
@@ -168,7 +168,6 @@ static void slow_sane_block_output(struct net_device *dev, int count,
|
||||
const unsigned char *buf, int start_page);
|
||||
static void word_memcpy_tocard(unsigned long tp, const void *fp, int count);
|
||||
static void word_memcpy_fromcard(void *tp, unsigned long fp, int count);
|
||||
static u32 mac8390_msg_enable;
|
||||
|
||||
static enum mac8390_type __init mac8390_ident(struct nubus_rsrc *fres)
|
||||
{
|
||||
@@ -299,8 +298,6 @@ static bool __init mac8390_init(struct net_device *dev,
|
||||
int offset;
|
||||
volatile unsigned short *i;
|
||||
|
||||
printk_once(KERN_INFO pr_fmt("%s"), version);
|
||||
|
||||
dev->irq = SLOT2IRQ(ndev->board->slot);
|
||||
/* This is getting to be a habit */
|
||||
dev->base_addr = (ndev->board->slot_addr |
|
||||
@@ -398,8 +395,6 @@ struct net_device * __init mac8390_probe(int unit)
|
||||
struct net_device *dev;
|
||||
struct nubus_rsrc *ndev = NULL;
|
||||
int err = -ENODEV;
|
||||
struct ei_device *ei_local;
|
||||
|
||||
static unsigned int slots;
|
||||
|
||||
enum mac8390_type cardtype;
|
||||
@@ -441,9 +436,6 @@ struct net_device * __init mac8390_probe(int unit)
|
||||
if (!ndev)
|
||||
goto out;
|
||||
|
||||
ei_local = netdev_priv(dev);
|
||||
ei_local->msg_enable = mac8390_msg_enable;
|
||||
|
||||
err = register_netdev(dev);
|
||||
if (err)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user