Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree

From: Linus Walleij
Date: Wed Jun 19 2013 - 15:33:40 EST


On Tue, Jun 18, 2013 at 12:57 PM, Stijn Devriendt <highguy@xxxxxxxxx> wrote:
> On Thu, Jun 6, 2013 at 4:05 PM, Archit Taneja <archit@xxxxxx> wrote:

>> +static struct pcf857x_platform_data *of_gpio_pcf857x(struct device *dev)
>> +{
>> + struct pcf857x_platform_data *pdata;
>> + int r;
>> +
>> + pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
>
>
> This memory is never freed, is it?

Why should it, given it's allocated with devres?

Yours,
Linus Walleij
--
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/