X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Flp486e.c;h=c87d90a837fb2eefc9072ff826d167171b8a4d38;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=7dda5dd054c8753859663e701ff2a1e5b3767d7f;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/net/lp486e.c b/drivers/net/lp486e.c index 7dda5dd05..c87d90a83 100644 --- a/drivers/net/lp486e.c +++ b/drivers/net/lp486e.c @@ -75,6 +75,8 @@ All other communication is through memory! #include #include +#define DRV_NAME "lp486e" + /* debug print flags */ #define LOG_SRCDST 0x80000000 #define LOG_STATINT 0x40000000 @@ -477,7 +479,7 @@ remove_rx_bufs(struct net_device *dev) { kfree(rfd); } while (rfd != lp->rx_tail); - lp->rx_tail = 0; + lp->rx_tail = NULL; #if 0 for (lp->rbd_list) { @@ -970,7 +972,7 @@ int __init lp486e_probe(struct net_device *dev) { return -ENODEV; probed++; - if (!request_region(IOADDR, LP486E_TOTAL_SIZE, dev->name)) { + if (!request_region(IOADDR, LP486E_TOTAL_SIZE, DRV_NAME)) { printk(KERN_ERR "lp486e: IO address 0x%x in use\n", IOADDR); return -EBUSY; }