X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fni52.c;h=234709ded74655006a35a29db5cd206360bcfb35;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=714d9705b6eb18f0b17e31c1972207ae992b8191;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/net/ni52.c b/drivers/net/ni52.c index 714d9705b..234709ded 100644 --- a/drivers/net/ni52.c +++ b/drivers/net/ni52.c @@ -124,6 +124,8 @@ static int fifo=0x8; /* don't change */ #include "ni52.h" +#define DRV_NAME "ni52" + #define DEBUG /* debug on */ #define SYSBUSVAL 1 /* 8 Bit */ @@ -424,7 +426,7 @@ static int __init ni52_probe1(struct net_device *dev,int ioaddr) dev->mem_start = memstart; dev->mem_end = memend; - if (!request_region(ioaddr, NI52_TOTAL_SIZE, dev->name)) + if (!request_region(ioaddr, NI52_TOTAL_SIZE, DRV_NAME)) return -EBUSY; if( !(inb(ioaddr+NI52_MAGIC1) == NI52_MAGICVAL1) ||