From mboxrd@z Thu Jan 1 00:00:00 1970 From: sshtylyov@mvista.com (Sergei Shtylyov) Date: Mon, 16 Apr 2012 21:33:31 +0400 Subject: [PATCH V4 1/5] of: Implement managed of_iomap() In-Reply-To: References: <6a0872f9d8959bc9d66d179e4911d6f09a219b42.1334548272.git.viresh.kumar@st.com> <201204161442.38725.arnd@arndb.de> Message-ID: <4F8C57EB.4050907@mvista.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello. On 04/16/2012 09:06 PM, Grant Likely wrote: >>> It isn't recommended anymore. Use the bus_type specific helpers instead. >> Ok. So here is fixup for 3/5 of this patchset. >> @Linus: I will merge this with PACH 3/5 and send pull request to Arnd. >> fixup! pinctrl: Add SPEAr pinctrl drivers > Cool, thanks. > Now what you *could* do is something like devm_platform_ioremap() that > gets the resource, does request_region() and ioremap(). That would > cut a lot of boilerplate out of drivers. :-) That is already done, called devm_request_and_ioremap(). WRB, Sergei From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH V4 1/5] of: Implement managed of_iomap() Date: Mon, 16 Apr 2012 21:33:31 +0400 Message-ID: <4F8C57EB.4050907@mvista.com> References: <6a0872f9d8959bc9d66d179e4911d6f09a219b42.1334548272.git.viresh.kumar@st.com> <201204161442.38725.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Grant Likely Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org, Rob Herring , viresh kumar , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org Hello. On 04/16/2012 09:06 PM, Grant Likely wrote: >>> It isn't recommended anymore. Use the bus_type specific helpers instead. >> Ok. So here is fixup for 3/5 of this patchset. >> @Linus: I will merge this with PACH 3/5 and send pull request to Arnd. >> fixup! pinctrl: Add SPEAr pinctrl drivers > Cool, thanks. > Now what you *could* do is something like devm_platform_ioremap() that > gets the resource, does request_region() and ioremap(). That would > cut a lot of boilerplate out of drivers. :-) That is already done, called devm_request_and_ioremap(). WRB, Sergei