On 01/21/2013 10:09 AM, Thierry Reding wrote: > Convert all uses of devm_request_and_ioremap() to the newly introduced > devm_ioremap_resource() which provides more consistent error handling. > > Signed-off-by: Thierry Reding <thierry.red...@avionic-design.de> > Cc: Jonathan Cameron <ji...@cam.ac.uk> > Cc: linux-...@vger.kernel.org Looks fine to me.
Acked-by: Jonathan Cameron <ji...@kernel.org> > --- > drivers/iio/adc/at91_adc.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c > index a526c0e..83c836b 100644 > --- a/drivers/iio/adc/at91_adc.c > +++ b/drivers/iio/adc/at91_adc.c > @@ -557,9 +557,9 @@ static int at91_adc_probe(struct platform_device *pdev) > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > - st->reg_base = devm_request_and_ioremap(&pdev->dev, res); > - if (!st->reg_base) { > - ret = -ENOMEM; > + st->reg_base = devm_ioremap_resource(&pdev->dev, res); > + if (IS_ERR(st->reg_base)) { > + ret = PTR_ERR(st->reg_base); > goto error_free_device; > } > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/