[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VdzX=8hjRX5PtO1q-uAa5AwNjoNN5P24ruR8ifvA-8umA@mail.gmail.com>
Date: Tue, 28 May 2013 19:24:00 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Lee Jones <lee.jones@...aro.org>
Cc: Leon Romanovsky <leon@...n.nu>,
Samuel Ortiz <sameo@...ux.intel.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drivers: mfd: tps65912: Convert to use devm_kzalloc
On Tue, May 28, 2013 at 12:02 PM, Lee Jones <lee.jones@...aro.org> 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 **’
--
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists