From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolae_Rosia@mentor.com (Rosia, Nicolae) Date: Wed, 23 Nov 2016 11:22:10 +0000 Subject: [PATCH] mfd: twl-core: export twl_get_regmap In-Reply-To: <20161123111223.GG23750@n2100.armlinux.org.uk> 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> Message-ID: <1479900128.16686.1.camel@mentor.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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