From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756142AbcDGMac (ORCPT ); Thu, 7 Apr 2016 08:30:32 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:34729 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756097AbcDGMa3 (ORCPT ); Thu, 7 Apr 2016 08:30:29 -0400 Date: Thu, 7 Apr 2016 21:30:24 +0900 From: Krzysztof Kozlowski To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , Sangbeom Kim , Mark Brown , Liam Girdwood Subject: Re: [PATCH 1/2] regulator: s2mps11: Use module_platform_driver() instead subsys initcall Message-ID: <20160407123024.GA6765@kozik-lap> References: <1459950587-8807-1-git-send-email-javier@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459950587-8807-1-git-send-email-javier@osg.samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 06, 2016 at 09:49:46AM -0400, Javier Martinez Canillas wrote: > The driver's init and exit function don't do anything besides registering > and unregistering the platform driver, so the module_platform_driver() > macro could just be used instead of having separate functions. > > Currently the macro is not being used because the driver is initialized at > subsys init call level but this isn't necessary since consumer devices are > defined in the DT as dependencies so there's no need for init calls order. > > Signed-off-by: Javier Martinez Canillas > > --- > This patch was tested on an Exynos5422 Odroid XU4 board. This test might not be sufficient. XU4 is not a mobile device like many other users of this driver (except Arndale Octa and Artiks all of other users are mobiles/wearables). For example XU4 does not have USB OTG (like other devices and like XU3). Best regards, Krzysztof > > drivers/regulator/s2mps11.c | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) >