aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_address.h
diff options
context:
space:
mode:
authorMatthias Brugger <matthias.bgg@gmail.com>2014-10-21 18:27:25 +0200
committerGrant Likely <grant.likely@linaro.org>2014-11-04 16:43:08 +0000
commitb75b276bead4850c86e60747babe09be5c13d4d1 (patch)
treec1aa6d922d03d67870238552251d2ce214cd150b /include/linux/of_address.h
parentof/unittest: Rename selftest.c to unittest.c (diff)
downloadlinux-dev-b75b276bead4850c86e60747babe09be5c13d4d1.tar.xz
linux-dev-b75b276bead4850c86e60747babe09be5c13d4d1.zip
of: Request and map make argument name constant
This patch makes the name argument from of_io_request_and_map constant. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'include/linux/of_address.h')
-rw-r--r--include/linux/of_address.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h
index 8cb14eb393d6..d88e81be6368 100644
--- a/include/linux/of_address.h
+++ b/include/linux/of_address.h
@@ -106,7 +106,7 @@ extern int of_address_to_resource(struct device_node *dev, int index,
struct resource *r);
void __iomem *of_iomap(struct device_node *node, int index);
void __iomem *of_io_request_and_map(struct device_node *device,
- int index, char *name);
+ int index, const char *name);
#else
#include <linux/io.h>
@@ -123,7 +123,7 @@ static inline void __iomem *of_iomap(struct device_node *device, int index)
}
static inline void __iomem *of_io_request_and_map(struct device_node *device,
- int index, char *name)
+ int index, const char *name)
{
return IOMEM_ERR_PTR(-EINVAL);
}