Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Matthias Brugger and committed by
Grant Likely
b75b276b 19fd7487

+3 -3
+1 -1
drivers/of/address.c
··· 871 871 * return PTR_ERR(base); 872 872 */ 873 873 void __iomem *of_io_request_and_map(struct device_node *np, int index, 874 - char *name) 874 + const char *name) 875 875 { 876 876 struct resource res; 877 877 void __iomem *mem;
+2 -2
include/linux/of_address.h
··· 106 106 struct resource *r); 107 107 void __iomem *of_iomap(struct device_node *node, int index); 108 108 void __iomem *of_io_request_and_map(struct device_node *device, 109 - int index, char *name); 109 + int index, const char *name); 110 110 #else 111 111 112 112 #include <linux/io.h> ··· 123 123 } 124 124 125 125 static inline void __iomem *of_io_request_and_map(struct device_node *device, 126 - int index, char *name) 126 + int index, const char *name) 127 127 { 128 128 return IOMEM_ERR_PTR(-EINVAL); 129 129 }