From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johan Hovold Subject: Re: [PATCH gpio 1/4] drivers: gpio: use devm_kzalloc Date: Tue, 7 Apr 2015 17:40:23 +0200 Message-ID: <20150407154023.GF21841@localhost> References: <1427775551-6908-1-git-send-email-varkab@cdac.in> <1427775551-6908-2-git-send-email-varkab@cdac.in> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-la0-f43.google.com ([209.85.215.43]:36164 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752872AbbDGPk0 (ORCPT ); Tue, 7 Apr 2015 11:40:26 -0400 Received: by lagv1 with SMTP id v1so45250531lag.3 for ; Tue, 07 Apr 2015 08:40:23 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Linus Walleij Cc: Varka Bhadram , "linux-gpio@vger.kernel.org" , Alexandre Courbot , Varka Bhadram On Tue, Apr 07, 2015 at 04:19:17PM +0200, Linus Walleij wrote: > On Tue, Mar 31, 2015 at 6:19 AM, Varka Bhadram wrote: > > > We can use devres API for allocating memory. No need of using kfree. > > > > Signed-off-by: Varka Bhadram > > Straight forward clean-up. Patch applied. You should probably drop this one (or remove the kfrees from the remove callbacks as a follow up). Johan