From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rosia, Nicolae" Subject: Re: [PATCH] mfd: twl-core: export twl_get_regmap Date: Wed, 23 Nov 2016 11:22:10 +0000 Message-ID: <1479900128.16686.1.camel@mentor.com> References: <1478950693-13959-1-git-send-email-Nicolae_Rosia@mentor.com> <20161118185548.GA23246@dell.home> <20161121092339.GA32509@dell> <20161121093144.GE23750@n2100.armlinux.org.uk> <20161121133755.GF23750@n2100.armlinux.org.uk> <20161123111223.GG23750@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20161123111223.GG23750@n2100.armlinux.org.uk> Content-Language: en-US Content-ID: <2B2ABAFDD9637F4BBC8040BAEC64C362@mentor.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: "linux@armlinux.org.uk" Cc: "tony@atomide.com" , "nicolae.rosia.oss@gmail.com" , "linux-omap@vger.kernel.org" , "lee.jones@linaro.org" , "linux-arm-kernel@lists.infradead.org" List-Id: linux-omap@vger.kernel.org Hello, On Wed, 2016-11-23 at 11:12 +0000, Russell King - ARM Linux wrote: > I was just curious, and I took a peek at the OMAP/TWL DT files, and > I see that it's left to DT to create the children. I'm converting the driver to use mfd_add_devices and mfd_remove_devices, the subdrivers will access the parent's private data which will remain valid since in the remove method we will be calling mfd_remove_devices first. After removing all global calls to twl-core.c methods, I will also get rid of the "only one instance" of twl_priv and the "ready" flag. Thanks for your input, Nicolae