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.ka...@samsung.com>

Acked-by: Jingoo Han <jg1....@samsung.com>

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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to