Commit 68179371 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

[Blackfin] arch: declare list of peripherals as const since we dont modify the incoming array

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 5d1617b2
......@@ -941,7 +941,7 @@ int peripheral_request(unsigned short per, const char *label)
EXPORT_SYMBOL(peripheral_request);
#endif
int peripheral_request_list(unsigned short per[], const char *label)
int peripheral_request_list(const unsigned short per[], const char *label)
{
u16 cnt;
int ret;
......@@ -994,7 +994,7 @@ void peripheral_free(unsigned short per)
}
EXPORT_SYMBOL(peripheral_free);
void peripheral_free_list(unsigned short per[])
void peripheral_free_list(const unsigned short per[])
{
u16 cnt;
for (cnt = 0; per[cnt] != 0; cnt++)
......
......@@ -17,8 +17,8 @@
int peripheral_request(unsigned short per, const char *label);
void peripheral_free(unsigned short per);
int peripheral_request_list(unsigned short per[], const char *label);
void peripheral_free_list(unsigned short per[]);
int peripheral_request_list(const unsigned short per[], const char *label);
void peripheral_free_list(const unsigned short per[]);
#include <asm/gpio.h>
#include <asm/mach/portmux.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment