aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier.adi@gmail.com>2008-04-23 17:04:24 -0400
committerBryan Wu <cooloney@kernel.org>2008-04-23 17:04:24 -0400
commit681793711abca2b45f210a553962e2c4884b5587 (patch)
treed193efbd433af7b19dbd5fc61286e3e04da02a5a
parent5d1617b247aa63698618215a9f39ecf905d55779 (diff)
[Blackfin] arch: declare list of peripherals as const since we dont modify the incoming array
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
-rw-r--r--arch/blackfin/kernel/bfin_gpio.c4
-rw-r--r--include/asm-blackfin/portmux.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index 72477c252a94..fcb2f6cf430b 100644
--- a/arch/blackfin/kernel/bfin_gpio.c
+++ b/arch/blackfin/kernel/bfin_gpio.c
@@ -941,7 +941,7 @@ int peripheral_request(unsigned short per, const char *label)
941EXPORT_SYMBOL(peripheral_request); 941EXPORT_SYMBOL(peripheral_request);
942#endif 942#endif
943 943
944int peripheral_request_list(unsigned short per[], const char *label) 944int peripheral_request_list(const unsigned short per[], const char *label)
945{ 945{
946 u16 cnt; 946 u16 cnt;
947 int ret; 947 int ret;
@@ -994,7 +994,7 @@ void peripheral_free(unsigned short per)
994} 994}
995EXPORT_SYMBOL(peripheral_free); 995EXPORT_SYMBOL(peripheral_free);
996 996
997void peripheral_free_list(unsigned short per[]) 997void peripheral_free_list(const unsigned short per[])
998{ 998{
999 u16 cnt; 999 u16 cnt;
1000 for (cnt = 0; per[cnt] != 0; cnt++) 1000 for (cnt = 0; per[cnt] != 0; cnt++)
diff --git a/include/asm-blackfin/portmux.h b/include/asm-blackfin/portmux.h
index 0d3f650d2d99..0807b286cd9e 100644
--- a/include/asm-blackfin/portmux.h
+++ b/include/asm-blackfin/portmux.h
@@ -17,8 +17,8 @@
17 17
18int peripheral_request(unsigned short per, const char *label); 18int peripheral_request(unsigned short per, const char *label);
19void peripheral_free(unsigned short per); 19void peripheral_free(unsigned short per);
20int peripheral_request_list(unsigned short per[], const char *label); 20int peripheral_request_list(const unsigned short per[], const char *label);
21void peripheral_free_list(unsigned short per[]); 21void peripheral_free_list(const unsigned short per[]);
22 22
23#include <asm/gpio.h> 23#include <asm/gpio.h>
24#include <asm/mach/portmux.h> 24#include <asm/mach/portmux.h>