summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-06 14:13:45 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 16:05:42 -0700
commit14ad5a94cbf49399e3bc5262428df07f7c3a75c7 (patch)
tree1caa14488dc0a889eae74ca9a3683cd1ab9f1639
parent473e92e69e3dcdb16b48573374b11b958a7985ed (diff)
downloadop-kernel-dev-14ad5a94cbf49399e3bc5262428df07f7c3a75c7.zip
op-kernel-dev-14ad5a94cbf49399e3bc5262428df07f7c3a75c7.tar.gz
usb: ehci-exynos: Use NULL instead of 0
The third argument of devm_of_phy_get expects a pointer. Hence use NULL instead of 0. Fixes the following warning: drivers/usb/host/ehci-exynos.c:91:51: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ehci-exynos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index d1c7621..cda0a2f 100644
--- a/drivers/usb/host/ehci-exynos.c
+++ b/drivers/usb/host/ehci-exynos.c
@@ -88,7 +88,7 @@ static int exynos_ehci_get_phy(struct device *dev,
return -EINVAL;
}
- phy = devm_of_phy_get(dev, child, 0);
+ phy = devm_of_phy_get(dev, child, NULL);
of_node_put(child);
if (IS_ERR(phy)) {
ret = PTR_ERR(phy);
OpenPOWER on IntegriCloud