On Mon, Jan 21, 2013 at 3:39 PM, Thierry Reding
<[email protected]> wrote:
> diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c
> index 83b21d9..69a2d9e 100644
> --- a/drivers/pwm/pwm-spear.c
> +++ b/drivers/pwm/pwm-spear.c
> @@ -192,9 +192,9 @@ static int spear_pwm_probe(struct platform_device *pdev)
>                 return -ENOMEM;
>         }
>
> -       pc->mmio_base = devm_request_and_ioremap(&pdev->dev, r);
> -       if (!pc->mmio_base)
> -               return -EADDRNOTAVAIL;
> +       pc->mmio_base = devm_ioremap_resource(&pdev->dev, r);
> +       if (IS_ERR(pc->mmio_base))
> +               return PTR_ERR(pc->mmio_base);
>
>         pc->clk = devm_clk_get(&pdev->dev, NULL);
>         if (IS_ERR(pc->clk))

Acked-by: Viresh Kumar <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to