Re: [PATCH] drivers: mfd: tps65912: Convert to use devm_kzalloc

From: Lee Jones
Date: Tue May 28 2013 - 15:16:36 EST


On Tue, 28 May 2013, Leon Romanovsky wrote:

> On Tue, May 28, 2013 at 7:24 PM, Andy Shevchenko
> <andy.shevchenko@xxxxxxxxx> wrote:
> > On Tue, May 28, 2013 at 12:02 PM, Lee Jones <lee.jones@xxxxxxxxxx> wrote:
> >> On Mon, 27 May 2013, Leon Romanovsky wrote:
> >
> >>> > > + init_data = devm_kzalloc(&tps65912->dev,
> >
> > There is an obvious typo: no need of & here if I got it correctly.
> >
> >> drivers/mfd/tps65912-core.c: In function âtps65912_device_initâ:
> >> drivers/mfd/tps65912-core.c:131:18: warning: passing argument 1 of âdevm_kzallocâ from incompatible pointer type [enabled by default]
> >> In file included from include/linux/platform_device.h:14:0,
> >> from include/linux/mfd/core.h:17,
> >> from drivers/mfd/tps65912-core.c:21:
> >> include/linux/device.h:574:14: note: expected âstruct device *â but argument is of type âstruct device **â
> You are absolutely right, I sent the wrong patch with typo :(
>
> Lee,
> Do I need to resend it ? Or you can fix it by yourself ?

I've already fixed it up and tested.

I just wanted to clarify exactly what happened, as it couldn't have
been tested.

No worries, patch applied.

--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/