aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eepro.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 05:16:08 -0500
committerJoe Perches <joe@perches.com>2010-12-21 05:16:08 -0500
commitb6bc765067ece933cc3dc7f5e95665a89100b1d5 (patch)
treebbf55c2d80e839eb4c0ab23bcbdd656d14b3f5fe /drivers/net/eepro.c
parent895950c2a6565d9eefda4a38b00fa28537e39fcb (diff)
drivers/net/*.c: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/eepro.c')
-rw-r--r--drivers/net/eepro.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c
index 9e19fbc2f176..4fa8d2a4aef3 100644
--- a/drivers/net/eepro.c
+++ b/drivers/net/eepro.c
@@ -891,12 +891,13 @@ err:
891 there is non-reboot way to recover if something goes wrong. 891 there is non-reboot way to recover if something goes wrong.
892 */ 892 */
893 893
894static char irqrmap[] = {-1,-1,0,1,-1,2,-1,-1,-1,0,3,4,-1,-1,-1,-1}; 894static const char irqrmap[] = {-1,-1,0,1,-1,2,-1,-1,-1,0,3,4,-1,-1,-1,-1};
895static char irqrmap2[] = {-1,-1,4,0,1,2,-1,3,-1,4,5,6,7,-1,-1,-1}; 895static const char irqrmap2[] = {-1,-1,4,0,1,2,-1,3,-1,4,5,6,7,-1,-1,-1};
896static int eepro_grab_irq(struct net_device *dev) 896static int eepro_grab_irq(struct net_device *dev)
897{ 897{
898 int irqlist[] = { 3, 4, 5, 7, 9, 10, 11, 12, 0 }; 898 static const int irqlist[] = { 3, 4, 5, 7, 9, 10, 11, 12, 0 };
899 int *irqp = irqlist, temp_reg, ioaddr = dev->base_addr; 899 const int *irqp = irqlist;
900 int temp_reg, ioaddr = dev->base_addr;
900 901
901 eepro_sw2bank1(ioaddr); /* be CAREFUL, BANK 1 now */ 902 eepro_sw2bank1(ioaddr); /* be CAREFUL, BANK 1 now */
902 903