[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1209580973764@kroah.org>
Date: Wed, 30 Apr 2008 11:42:53 -0700
From: <gregkh@...e.de>
To: galak@...nel.crashing.org, akpm@...l.org, gregkh@...e.de,
greg@...ah.com, htejun@...il.com, jbarnes@...tuousgeek.org,
jgarzik@...ox.com, linux-kernel@...r.kernel.org,
linuxppc-dev@...abs.org
Subject: patch devres-support-addresses-greater-than-an-unsigned-long-via-dev_ioremap.patch added to gregkh-2.6 tree
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@...nel.crashing.org Wed Apr 30 11:27:51 2008
From: Kumar Gala <galak@...nel.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@...ah.com>
Cc: Tejun Heo <htejun@...il.com>, Jeff Garzik <jgarzik@...ox.com>, Andrew Morton <akpm@...l.org>, "linuxppc-dev@...abs.org list" <linuxppc-dev@...abs.org>, lkml Mailing List <linux-kernel@...r.kernel.org>, Jesse Barnes <jbarnes@...tuousgeek.org>
Message-ID: <Pine.LNX.4.64.0804291025140.25102@...rg.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@...nel.crashing.org>
Cc: Tejun Heo <htejun@...il.com>
Cc: Jeff Garzik <jgarzik@...ox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.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@...nel.crashing.org are
driver-core/devres-support-addresses-greater-than-an-unsigned-long-via-dev_ioremap.patch
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists