usb: ohci-exynos: Use NULL instead of 0

This change “usb: ohci-exynos: Use NULL instead of 0” (commit 473e92e) in Linux kernel is authored by Sachin Kamat <sachin.kamat [at] samsung.com> on Fri Jun 6 14:13:44 2014 +0530.

Description of "usb: ohci-exynos: Use NULL instead of 0"

The change “usb: ohci-exynos: Use NULL instead of 0” introduces changes as follows.

usb: ohci-exynos: Use NULL instead of 0

The third argument of devm_of_phy_get expects a pointer.
Hence use NULL instead of 0.

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>

Linux kernel releases containing commit 473e92e

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "usb: ohci-exynos: Use NULL instead of 0"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/usb/host/ohci-exynos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c
index 060a6a414750..a72ab8fe8cd3 100644
--- a/drivers/usb/host/ohci-exynos.c
+++ b/drivers/usb/host/ohci-exynos.c
@@ -87,7 +87,7 @@ static int exynos_ohci_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);

The commit for this change in Linux stable tree is 473e92e (patch).

Last modified: 2020/02/10