From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH V4 1/5] of: Implement managed of_iomap() Date: Mon, 16 Apr 2012 09:06:56 -0600 Message-ID: References: <6a0872f9d8959bc9d66d179e4911d6f09a219b42.1334548272.git.viresh.kumar@st.com> <201204161442.38725.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201204161442.38725.arnd-r2nGTMty4D4@public.gmane.org> 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: Arnd Bergmann Cc: Viresh Kumar , devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org, Rob Herring , viresh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Mon, Apr 16, 2012 at 8:42 AM, Arnd Bergmann wrote: > On Monday 16 April 2012, Viresh Kumar wrote: >> This simplifies cleanup paths of user code by providing managed version of >> of_iomap(). >> >> Signed-off-by: Viresh Kumar >> Cc: Grant Likely > > > This one looks good, > > Acked-by: Arnd Bergmann > > but I wonder if we should also have a devm_of_request_and_ioremap > (maybe with a shorter name) that combines this with request_resource. Why is this function needed? I'm directing drivers away from using of_iomap now since the resource table is populated with the address ranges at device registration time now. New code should be using platform_get_resource() if it is a platform device. g.