update oleg's b44 patch to initialize switch access on driver load
[openwrt.git] / package / linux / kernel-patches / 203-net_core_dev_c.patch
1 --- linux-2.4.30/net/core/dev.c 2005-04-04 05:42:20.000000000 +0400
2 +++ linux/net/core/dev.c 2005-05-10 14:49:27.809927172 +0400
3 @@ -2216,6 +2220,9 @@
4 cmd == SIOCBONDSLAVEINFOQUERY ||
5 cmd == SIOCBONDINFOQUERY ||
6 cmd == SIOCBONDCHANGEACTIVE ||
7 +#ifdef CONFIG_BCM4710
8 + cmd == SIOCETHTOOL ||
9 +#endif
10 cmd == SIOCGMIIPHY ||
11 cmd == SIOCGMIIREG ||
12 cmd == SIOCSMIIREG ||
13 @@ -2312,6 +2319,7 @@
14 return ret;
15
16 case SIOCETHTOOL:
17 +#ifndef CONFIG_BCM4710
18 dev_load(ifr.ifr_name);
19 rtnl_lock();
20 ret = dev_ethtool(&ifr);
21 @@ -2324,6 +2332,7 @@
22 ret = -EFAULT;
23 }
24 return ret;
25 +#endif
26
27 /*
28 * These ioctl calls:
This page took 0.077221 seconds and 5 git commands to generate.