patch devres-support-addresses-greater-than-an-unsigned-long-via-dev_ioremap.patch added to gregkh-2.6 tree
gregkh at suse.de
gregkh at suse.de
Thu May 1 04:42:53 EST 2008
This is a note to let you know that I've just added the patch titled
Subject: devres: support addresses greater than an unsigned long via dev_ioremap
to my gregkh-2.6 tree. Its filename is
devres-support-addresses-greater-than-an-unsigned-long-via-dev_ioremap.patch
This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
>From galak at kernel.crashing.org Wed Apr 30 11:27:51 2008
From: Kumar Gala <galak at kernel.crashing.org>
Date: Tue, 29 Apr 2008 10:25:48 -0500 (CDT)
Subject: devres: support addresses greater than an unsigned long via dev_ioremap
To: Greg KH <greg at kroah.com>
Cc: Tejun Heo <htejun at gmail.com>, Jeff Garzik <jgarzik at pobox.com>, Andrew Morton <akpm at osdl.org>, "linuxppc-dev at ozlabs.org list" <linuxppc-dev at ozlabs.org>, lkml Mailing List <linux-kernel at vger.kernel.org>, Jesse Barnes <jbarnes at virtuousgeek.org>
Message-ID: <Pine.LNX.4.64.0804291025140.25102 at blarg.am.freescale.net>
Use a resource_size_t instead of unsigned long since some arch's are
capable of having ioremap deal with addresses greater than the size of a
unsigned long.
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
Cc: Tejun Heo <htejun at gmail.com>
Cc: Jeff Garzik <jgarzik at pobox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
include/linux/io.h | 4 ++--
lib/devres.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -58,9 +58,9 @@ static inline void devm_ioport_unmap(str
}
#endif
-void __iomem * devm_ioremap(struct device *dev, unsigned long offset,
+void __iomem * devm_ioremap(struct device *dev, resource_size_t offset,
unsigned long size);
-void __iomem * devm_ioremap_nocache(struct device *dev, unsigned long offset,
+void __iomem * devm_ioremap_nocache(struct device *dev, resource_size_t offset,
unsigned long size);
void devm_iounmap(struct device *dev, void __iomem *addr);
int check_signature(const volatile void __iomem *io_addr,
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -20,7 +20,7 @@ static int devm_ioremap_match(struct dev
*
* Managed ioremap(). Map is automatically unmapped on driver detach.
*/
-void __iomem *devm_ioremap(struct device *dev, unsigned long offset,
+void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
unsigned long size)
{
void __iomem **ptr, *addr;
@@ -49,7 +49,7 @@ EXPORT_SYMBOL(devm_ioremap);
* Managed ioremap_nocache(). Map is automatically unmapped on driver
* detach.
*/
-void __iomem *devm_ioremap_nocache(struct device *dev, unsigned long offset,
+void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
unsigned long size)
{
void __iomem **ptr, *addr;
Patches currently in gregkh-2.6 which might be from galak at kernel.crashing.org are
driver-core/devres-support-addresses-greater-than-an-unsigned-long-via-dev_ioremap.patch
More information about the Linuxppc-dev
mailing list