aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2016-08-14 11:21:48 +0200
committerRafał Miłecki <rafal@milecki.pl>2016-08-14 11:22:58 +0200
commitb9d8c8101813a1ae400710906a2c481a9a543463 (patch)
tree740c1a318d9bc7e15c7decde234c4ab09c9d1dbf /target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch
parentb9b665ae49469a73d254b1a219a4a7c4e22f27c0 (diff)
downloadupstream-b9d8c8101813a1ae400710906a2c481a9a543463.tar.gz
upstream-b9d8c8101813a1ae400710906a2c481a9a543463.tar.bz2
upstream-b9d8c8101813a1ae400710906a2c481a9a543463.zip
bcm53xx: rename PHY patches to use 07* prefix
This is not a strict rule but it matches better this one: 7xx - network / phy driver patches Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch')
-rw-r--r--target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch b/target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch
new file mode 100644
index 0000000000..ae3462f43e
--- /dev/null
+++ b/target/linux/bcm53xx/patches-4.4/070-0002-phy-bcm-ns-usb2-checking-the-wrong-variable.patch
@@ -0,0 +1,27 @@
+From 6c081ff6fd5abd621797570be43d5e3c6acfcd58 Mon Sep 17 00:00:00 2001
+From: Dan Carpenter <dan.carpenter@oracle.com>
+Date: Tue, 10 May 2016 11:01:33 +0300
+Subject: [PATCH] phy: bcm-ns-usb2: checking the wrong variable
+
+We intended to test "usb2->phy" here instead of "dev".
+
+Fixes: d3feb4067335 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar')
+Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
+Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
+---
+ drivers/phy/phy-bcm-ns-usb2.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/drivers/phy/phy-bcm-ns-usb2.c
++++ b/drivers/phy/phy-bcm-ns-usb2.c
+@@ -109,8 +109,8 @@ static int bcm_ns_usb2_probe(struct plat
+ }
+
+ usb2->phy = devm_phy_create(dev, NULL, &ops);
+- if (IS_ERR(dev))
+- return PTR_ERR(dev);
++ if (IS_ERR(usb2->phy))
++ return PTR_ERR(usb2->phy);
+
+ phy_set_drvdata(usb2->phy, usb2);
+ platform_set_drvdata(pdev, usb2);