aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
committerJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
commit215faf9c5f6e319e97edea9e178123e07825c14d (patch)
tree32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/tokenring
parent75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (diff)
drivers/net/*/: 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/tokenring')
-rw-r--r--drivers/net/tokenring/ibmtr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c
index 91e6c78271a3..4786497de03e 100644
--- a/drivers/net/tokenring/ibmtr.c
+++ b/drivers/net/tokenring/ibmtr.c
@@ -657,8 +657,9 @@ static int __devinit ibmtr_probe1(struct net_device *dev, int PIOaddr)
657#ifndef PCMCIA 657#ifndef PCMCIA
658 /* finish figuring the shared RAM address */ 658 /* finish figuring the shared RAM address */
659 if (cardpresent == TR_ISA) { 659 if (cardpresent == TR_ISA) {
660 static __u32 ram_bndry_mask[] = 660 static const __u32 ram_bndry_mask[] = {
661 { 0xffffe000, 0xffffc000, 0xffff8000, 0xffff0000 }; 661 0xffffe000, 0xffffc000, 0xffff8000, 0xffff0000
662 };
662 __u32 new_base, rrr_32, chk_base, rbm; 663 __u32 new_base, rrr_32, chk_base, rbm;
663 664
664 rrr_32=readb(ti->mmio+ACA_OFFSET+ACA_RW+RRR_ODD) >> 2 & 0x03; 665 rrr_32=readb(ti->mmio+ACA_OFFSET+ACA_RW+RRR_ODD) >> 2 & 0x03;