of: Request and map make argument name constant
authorMatthias Brugger <matthias.bgg@gmail.com>
Tue, 21 Oct 2014 16:27:25 +0000 (18:27 +0200)
committerGrant Likely <grant.likely@linaro.org>
Tue, 4 Nov 2014 16:43:08 +0000 (16:43 +0000)
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>
drivers/of/address.c
include/linux/of_address.h

index afdb78299f61f8d5465ec1d203d482d0674fe31d..e02828fa3acd64eefc29c6135540ae1917a48150 100644 (file)
@@ -871,7 +871,7 @@ EXPORT_SYMBOL(of_iomap);
  *             return PTR_ERR(base);
  */
 void __iomem *of_io_request_and_map(struct device_node *np, int index,
-                                       char *name)
+                                       const char *name)
 {
        struct resource res;
        void __iomem *mem;
index 8cb14eb393d6d178968cc2af6bbbffbc0bd0a1ff..d88e81be6368d2e2a07e34a8c0d28bbf9366a878 100644 (file)
@@ -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);
 }