Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc5 /lib/devres.c

Filename:/lib/devres.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.6.26-rc4  2.6.26-rc3  2.6.26-rc2  2.6.26-rc1-git9  2.6.26-rc1-git8  2.6.26-rc1-git7 
(Following) 2.6.26-rc6  2.6.26-rc7  2.6.26-rc8  2.6.26-rc9  2.6.26 

Location
[  2.6.26-rc5
  [  lib
     o  devres.c

Patch

diff --git a/lib/devres.c b/lib/devres.c
index edc27a5..72c8909 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -2,7 +2,7 @@
 #include <linux/io.h>
 #include <linux/module.h>
 
-static void devm_ioremap_release(struct device *dev, void *res)
+void devm_ioremap_release(struct device *dev, void *res)
 {
    iounmap(*(void __iomem **)res);
 }
@@ -20,7 +20,7 @@ static int devm_ioremap_match(struct device *dev, void *res, void *match_data)
  *
  * 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;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.