Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935171Ab3FSTdg (ORCPT ); Wed, 19 Jun 2013 15:33:36 -0400 Received: from mail-oa0-f43.google.com ([209.85.219.43]:62361 "EHLO mail-oa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935094Ab3FSTdf (ORCPT ); Wed, 19 Jun 2013 15:33:35 -0400 MIME-Version: 1.0 In-Reply-To: References: <1370527523-1030-1-git-send-email-archit@ti.com> Date: Wed, 19 Jun 2013 21:33:34 +0200 Message-ID: Subject: Re: [PATCH] gpio: Enable pcf857x GPIO expander for Device Tree From: Linus Walleij To: Stijn Devriendt Cc: Archit Taneja , LKML , Linux-OMAP , "linux-doc@vger.kernel.org" , Grant Likely Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 727 Lines: 22 On Tue, Jun 18, 2013 at 12:57 PM, Stijn Devriendt wrote: > On Thu, Jun 6, 2013 at 4:05 PM, Archit Taneja 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/