X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fstnic.c;h=e6f90427160cf162d82682a409af375eb6e4903b;hb=refs%2Fheads%2Fvserver;hp=8346de427f05a51d3b1a62704d98da0f5b8f906f;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/net/stnic.c b/drivers/net/stnic.c index 8346de427..e6f904271 100644 --- a/drivers/net/stnic.c +++ b/drivers/net/stnic.c @@ -7,7 +7,6 @@ * Copyright (C) 1999 kaz Kojima */ -#include #include #include #include @@ -20,14 +19,16 @@ #include #include -#include +#include #include -#ifdef CONFIG_SH_STANDARD_BIOS +#ifdef CONFIG_SH_STANDARD_BIOS #include #endif #include "8390.h" +#define DRV_NAME "stnic" + #define byte unsigned char #define half unsigned short #define word unsigned int @@ -97,7 +98,7 @@ STNIC_WRITE (int reg, byte val) *(vhalf *) (PA_83902 + ((reg) << 1)) = ((half) (val) << 8); STNIC_DELAY (); } - + static int __init stnic_probe(void) { struct net_device *dev; @@ -113,7 +114,7 @@ static int __init stnic_probe(void) return -ENOMEM; SET_MODULE_OWNER(dev); -#ifdef CONFIG_SH_STANDARD_BIOS +#ifdef CONFIG_SH_STANDARD_BIOS sh_bios_get_node_addr (stnic_eadr); #endif for (i = 0; i < ETHER_ADDR_LEN; i++) @@ -130,7 +131,7 @@ static int __init stnic_probe(void) /* Snarf the interrupt now. There's no point in waiting since we cannot share and the board will usually be enabled. */ - err = request_irq (dev->irq, ei_interrupt, 0, dev->name, dev); + err = request_irq (dev->irq, ei_interrupt, 0, DRV_NAME, dev); if (err) { printk (KERN_EMERG " unable to get IRQ %d.\n", dev->irq); free_netdev(dev); @@ -139,7 +140,7 @@ static int __init stnic_probe(void) ei_status.name = dev->name; ei_status.word16 = 1; -#ifdef __LITTLE_ENDIAN__ +#ifdef __LITTLE_ENDIAN__ ei_status.bigendian = 0; #else ei_status.bigendian = 1;