aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-11-11 21:23:29 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-11-11 21:23:29 +0000
commit22e6165b04df722858a81a9fbb5893c0ce79506e (patch)
treed553f6bb635b3a2bdd9350fa2c3c47fa1040209b /target/linux/brcm47xx
parent781c17117a3a6c40d9e39dc2cb016e2a80aeee4e (diff)
downloadmaster-187ad058-22e6165b04df722858a81a9fbb5893c0ce79506e.tar.gz
master-187ad058-22e6165b04df722858a81a9fbb5893c0ce79506e.tar.bz2
master-187ad058-22e6165b04df722858a81a9fbb5893c0ce79506e.zip
brcm47xx: b44: fix logic in BUG_ON()
It is a problem when phydev is not set at this position and not the other way around. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38744 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx')
-rw-r--r--target/linux/brcm47xx/patches-3.10/205-b44-add-phylib-support.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/205-b44-add-phylib-support.patch b/target/linux/brcm47xx/patches-3.10/205-b44-add-phylib-support.patch
index 2386fbe9a3..8c7ba9ccff 100644
--- a/target/linux/brcm47xx/patches-3.10/205-b44-add-phylib-support.patch
+++ b/target/linux/brcm47xx/patches-3.10/205-b44-add-phylib-support.patch
@@ -128,7 +128,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
spin_lock_irq(&bp->lock);
- err = generic_mii_ioctl(&bp->mii_if, data, cmd, NULL);
+ if (bp->flags & B44_FLAG_EXTERNAL_PHY) {
-+ BUG_ON(bp->phydev);
++ BUG_ON(!bp->phydev);
+ err = phy_mii_ioctl(bp->phydev, ifr, cmd);
+ } else {
+ err = generic_mii_ioctl(&bp->mii_if, if_mii(ifr), cmd, NULL);