提交 14ad5a94 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

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: NSachin Kamat <sachin.kamat@samsung.com>
Acked-by: NJingoo Han <jg1.han@samsung.com>
Reviewed-by: NVivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 473e92e6
...@@ -88,7 +88,7 @@ static int exynos_ehci_get_phy(struct device *dev, ...@@ -88,7 +88,7 @@ static int exynos_ehci_get_phy(struct device *dev,
return -EINVAL; return -EINVAL;
} }
phy = devm_of_phy_get(dev, child, 0); phy = devm_of_phy_get(dev, child, NULL);
of_node_put(child); of_node_put(child);
if (IS_ERR(phy)) { if (IS_ERR(phy)) {
ret = PTR_ERR(phy); ret = PTR_ERR(phy);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册