aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7/files/arch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-09-01 11:49:57 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-09-01 11:49:57 +0000
commit3ab8360af088dfdde236a69c4ea0e97ab95117a7 (patch)
tree8115c3f9da7d1cb3fdc236a080f7f9971db54d14 /target/linux/ar7/files/arch
parent8509d0542f3984fc703b5829c17c0f1c0c264fe7 (diff)
downloadupstream-3ab8360af088dfdde236a69c4ea0e97ab95117a7.tar.gz
upstream-3ab8360af088dfdde236a69c4ea0e97ab95117a7.tar.bz2
upstream-3ab8360af088dfdde236a69c4ea0e97ab95117a7.zip
Fix divisor calculation and configuration from previous commit, thanks sn9
SVN-Revision: 12454
Diffstat (limited to 'target/linux/ar7/files/arch')
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/platform.c2
-rw-r--r--target/linux/ar7/files/arch/mips/ar7/prom.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar7/files/arch/mips/ar7/platform.c b/target/linux/ar7/files/arch/mips/ar7/platform.c
index 81d4290e8f..1464ccdd6d 100644
--- a/target/linux/ar7/files/arch/mips/ar7/platform.c
+++ b/target/linux/ar7/files/arch/mips/ar7/platform.c
@@ -493,11 +493,11 @@ static int __init ar7_register_devices(void)
if (res)
return res;
+ ar7_device_disable(vlynq_low_data.reset_bit);
res = platform_device_register(&vlynq_low);
if (res)
return res;
- ar7_device_disable(vlynq_low_data.reset_bit);
if (ar7_has_high_vlynq()) {
ar7_device_disable(vlynq_high_data.reset_bit);
res = platform_device_register(&vlynq_high);
diff --git a/target/linux/ar7/files/arch/mips/ar7/prom.c b/target/linux/ar7/files/arch/mips/ar7/prom.c
index 249aab5867..4a6cd290ba 100644
--- a/target/linux/ar7/files/arch/mips/ar7/prom.c
+++ b/target/linux/ar7/files/arch/mips/ar7/prom.c
@@ -39,7 +39,7 @@ struct env_var {
static struct env_var adam2_env[MAX_ENTRY] = { { 0, }, };
-char *prom_getenv(char *name)
+char *prom_getenv(const char *name)
{
int i;
for (i = 0; (i < MAX_ENTRY) && adam2_env[i].name; i++)
@@ -288,7 +288,7 @@ int prom_putchar(char c)
}
/* from adm5120/prom.c */
-void prom_printf(char *fmt, ...)
+void prom_printf(const char *fmt, ...)
{
va_list args;
int l;