Re: [PATCH 2/2] usb: ehci-exynos: Use NULL instead of 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, June 06, 2014 5:44 PM, Sachin Kamat wrote:
> 
> 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@xxxxxxxxxxx>

Acked-by: Jingoo Han <jg1.han@xxxxxxxxxxx>

Best regards,
Jingoo Han

> ---
>  drivers/usb/host/ehci-exynos.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
> index d1c76216350f..cda0a2f5c467 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);
> --
> 1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux