Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753938AbbGXMgd (ORCPT ); Fri, 24 Jul 2015 08:36:33 -0400 Received: from mail-qk0-f172.google.com ([209.85.220.172]:36573 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752552AbbGXMg3 (ORCPT ); Fri, 24 Jul 2015 08:36:29 -0400 MIME-Version: 1.0 In-Reply-To: <20150724122622.GA22105@earth> References: <20150724115813.GA3004@vaishali-Ideapad-Z570> <20150724122622.GA22105@earth> Date: Fri, 24 Jul 2015 21:36:28 +0900 X-Google-Sender-Auth: eJrVuCU78eI7_IpRD3LCM200EHU Message-ID: Subject: Re: [PATCH] power_supply: Adjust devm usage From: Krzysztof Kozlowski To: Sebastian Reichel Cc: Vaishali Thakkar , Dmitry Eremin-Solenikov , David Woodhouse , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 32 2015-07-24 21:26 GMT+09:00 Sebastian Reichel : > Hi, > > Thanks for the cleanup patch. > I have a couple of comments inlined. > >> Subject: Re: [PATCH] power_supply: Adjust devm usage > > Please make this "power_supply: bq24735: ...". > > On Fri, Jul 24, 2015 at 05:28:13PM +0530, Vaishali Thakkar wrote: >> Use devm_kasprintf instead of kasprintf. Also, remove various >> gotos by direct returns and drop unneeded label err_free_name. > > Please also use devm_power_supply_unregister() instead > of power_supply_unregister() to further simplify the driver. > >> @@ -267,8 +267,9 @@ static int bq24735_charger_probe() {} >> [...] > > Your patch is missing removal of the > kfree(charger->charger_desc.name) in bq24735_charger_remove(). Right, I missed that... My review was not sufficient. Best regards, Krzysztof -- 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/