提交 b75b276b 编写于 作者: M Matthias Brugger 提交者: Grant Likely

of: Request and map make argument name constant

This patch makes the name argument from of_io_request_and_map constant.
Signed-off-by: NMatthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: NGrant Likely <grant.likely@linaro.org>
上级 19fd7487
......@@ -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;
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册