Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935149AbdDFORz (ORCPT ); Thu, 6 Apr 2017 10:17:55 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:34462 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934593AbdDFORr (ORCPT ); Thu, 6 Apr 2017 10:17:47 -0400 Date: Thu, 6 Apr 2017 22:17:31 +0800 From: Leo Yan To: Auger Eric Cc: Russell King , Dmitry Torokhov , Alessandro Zummo , Alexandre Belloni , Linus Walleij , Baptiste Reynal , Alex Williamson , Jaroslav Kysela , Takashi Iwai , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH 4/5] vfio: platform: Convert to use devm_*() Message-ID: <20170406141731.GA27245@leoy-linaro> References: <1490539314-9681-1-git-send-email-leo.yan@linaro.org> <1490539314-9681-5-git-send-email-leo.yan@linaro.org> <10625a88-3d6d-de52-8299-3ba0031317f8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10625a88-3d6d-de52-8299-3ba0031317f8@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 28 On Sun, Apr 02, 2017 at 04:45:28PM +0200, Auger Eric wrote: > Hi Leo, > > On 26/03/2017 16:41, Leo Yan wrote: > > Convert driver to use devm_*() APIs so rely on driver model core layer > > to manage resources. This eliminates error path boilerplate and makes > > code neat. > > > > This patch also renames amba_id structure, the old code used some code > > which directly copied from other driver. > > > > Signed-off-by: Leo Yan > Looks good to me > Reviewed-by: Eric Auger Thanks for reviewing, Eric. > May be interesting to go further converting as well the vfio-platform > driver but this can be done later on. Looked a bit for vfio-platform driver and I'm not sure if need some converting within function vfio_platform_probe_common(). So I'd like to leave this to who really understand the subsystem :) [...] Thanks, Leo Yan