diff options
Diffstat (limited to 'target/linux/ar7/files/arch')
-rw-r--r-- | target/linux/ar7/files/arch/mips/ar7/platform.c | 2 | ||||
-rw-r--r-- | target/linux/ar7/files/arch/mips/ar7/prom.c | 4 |
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 81d4290e8..1464ccdd6 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 249aab586..4a6cd290b 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; |