diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-02-13 16:01:50 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-02-13 16:01:50 +0000 |
commit | 9692bcf3d9cdb1fba51c612317f1c5965f18fd39 (patch) | |
tree | 151d7ed9355f0c21dea08204d0a8d3ae191ee1c0 /package/switch | |
parent | c403c980f55917cb83253dc125234d47de6aaf3c (diff) | |
download | upstream-9692bcf3d9cdb1fba51c612317f1c5965f18fd39.tar.gz upstream-9692bcf3d9cdb1fba51c612317f1c5965f18fd39.tar.bz2 upstream-9692bcf3d9cdb1fba51c612317f1c5965f18fd39.zip |
switch: run cleanfile over the source code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35577 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch')
-rw-r--r-- | package/switch/src/switch-robo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index f3a0eacf19..1372fbd624 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -17,7 +17,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ @@ -314,7 +314,7 @@ static int robo_probe(char *devname) goto done; } - phyid = mdio_read(ROBO_PHY_ADDR, 0x2) | + phyid = mdio_read(ROBO_PHY_ADDR, 0x2) | (mdio_read(ROBO_PHY_ADDR, 0x3) << 16); if (phyid == 0xffffffff || phyid == 0x55210022) { @@ -534,7 +534,7 @@ static int handle_port_media_write(void *driver, char *buf, int nr) } bmcr_mask = ~(BMCR_SPEED1000 | BMCR_SPEED100 | BMCR_FULLDPLX | BMCR_ANENABLE | BMCR_ANRESTART); - mdio_write(robo.port[nr], MII_BMCR, + mdio_write(robo.port[nr], MII_BMCR, (mdio_read(robo.port[nr], MII_BMCR) & bmcr_mask) | bmcr); return 0; |