Skip to content

Commit

Permalink
of: Request and map make argument name constant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mbgg authored and glikely committed Nov 4, 2014
1 parent 19fd748 commit b75b276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/of/address.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions include/linux/of_address.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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);
}
Expand Down

0 comments on commit b75b276

Please sign in to comment.