]> git.hungrycats.org Git - linux/commitdiff
[PATCH] 3c59x: module loading fix
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:57:26 +0000 (18:57 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:57:26 +0000 (18:57 -0800)
3c59x has a tunable `rx_copybreak'.  But it's declared const, so recent gcc's
rub it out altogether, and modprobe says `3c59x: falsely claims to have
parameter rx_copybreak'.

drivers/net/3c59x.c

index 572de917454d2612175a72ce73bfd211a5336aaa..b276d81cfa31ca26c2b8dd989b664c38b5b93112 100644 (file)
 /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
    Setting to > 1512 effectively disables this feature. */
 #ifndef __arm__
-static const int rx_copybreak = 200;
+static int rx_copybreak = 200;
 #else
 /* ARM systems perform better by disregarding the bus-master
    transfer capability of these cards. -- rmk */
-static const int rx_copybreak = 1513;
+static int rx_copybreak = 1513;
 #endif
 /* Allow setting MTU to a larger size, bypassing the normal ethernet setup. */
 static const int mtu = 1500;