From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754505Ab2DWJRz (ORCPT ); Mon, 23 Apr 2012 05:17:55 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:41025 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585Ab2DWJRy (ORCPT ); Mon, 23 Apr 2012 05:17:54 -0400 Date: Mon, 23 Apr 2012 10:17:34 +0100 From: Russell King - ARM Linux To: Linus Walleij Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rabin Vincent , Jonas Aberg , Philippe LANGLAIS , Linus Walleij , Grant Likely , Lee Jones Subject: Re: [PATCH 5/9] gpio/nomadik: use typesafe __io_address() Message-ID: <20120423091733.GJ24211@n2100.arm.linux.org.uk> References: <1335172482-27648-1-git-send-email-linus.walleij@stericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1335172482-27648-1-git-send-email-linus.walleij@stericsson.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2012 at 11:14:42AM +0200, Linus Walleij wrote: > From: Linus Walleij > > We were using a custom io_p2v() (physical-to-virtual) translation > macro, but with the advent of the cross-platform __io_address() > let us try to get rid of this. Inspired by a similar patch by > Jonas Aberg. Is there any point to io_p2v() or __io_address() anymore? Won't ioremap() do here?