Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030306AbcCQLHt (ORCPT ); Thu, 17 Mar 2016 07:07:49 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:35749 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935728AbcCQLHp (ORCPT ); Thu, 17 Mar 2016 07:07:45 -0400 Subject: Re: [PATCH v2 10/11] usb: musb: da8xx: Use devm in probe To: David Lechner References: <1458181615-27782-1-git-send-email-david@lechnology.com> <1458181615-27782-11-git-send-email-david@lechnology.com> Cc: Petr Kulhavy , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Sekhar Nori , Kevin Hilman , Kishon Vijay Abraham I , Alan Stern , Greg Kroah-Hartman , Bin Liu , =?UTF-8?Q?Andreas_F=c3=a4rber?= , Robert Jarzmik , Tony Lindgren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org From: Sergei Shtylyov Message-ID: <56EA8FFB.6060506@cogentembedded.com> Date: Thu, 17 Mar 2016 14:07:39 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1458181615-27782-11-git-send-email-david@lechnology.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 31 Hello. On 3/17/2016 5:26 AM, David Lechner wrote: > Simplify things a bit by using devm functions where possible. > > Signed-off-by: David Lechner > --- > > v2 changes: This is part of a previous patch that was split. No changes from > previous version. > > > drivers/usb/musb/da8xx.c | 28 ++++++++-------------------- > 1 file changed, 8 insertions(+), 20 deletions(-) > > diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c > index b03d3b8..50f07a5 100644 > --- a/drivers/usb/musb/da8xx.c > +++ b/drivers/usb/musb/da8xx.c > @@ -489,32 +489,27 @@ static int da8xx_probe(struct platform_device *pdev) > struct platform_device *musb; > struct da8xx_glue *glue; > struct platform_device_info pinfo; > - struct clk *clk; I wouldn't remove this variable to minimize the patch. [...] MBR, Sergei