Commit db0d079e authored by Paul Mackerras's avatar Paul Mackerras

PPC32: eliminate some compile warnings on the EP405 board.

parent cbcb24c3
...@@ -65,12 +65,10 @@ board_setup_arch(void) ...@@ -65,12 +65,10 @@ board_setup_arch(void)
{ {
bd_t *bip = (bd_t *) __res; bd_t *bip = (bd_t *) __res;
#ifdef CONFIG_PPC_RTC
if (bip->bi_nvramsize == 512*1024) { if (bip->bi_nvramsize == 512*1024) {
/* FIXME: we should properly handle NVRTCs of different sizes */ /* FIXME: we should properly handle NVRTCs of different sizes */
TODC_INIT(TODC_TYPE_DS1557, ep405_nvram, ep405_nvram, ep405_nvram, 8); TODC_INIT(TODC_TYPE_DS1557, ep405_nvram, ep405_nvram, ep405_nvram, 8);
} }
#endif
} }
void __init void __init
...@@ -178,9 +176,9 @@ board_setup_irq(void) ...@@ -178,9 +176,9 @@ board_setup_irq(void)
void __init void __init
board_init(void) board_init(void)
{ {
#ifdef CONFIG_PPC_RTC
bd_t *bip = (bd_t *) __res; bd_t *bip = (bd_t *) __res;
#ifdef CONFIG_PPC_RTC
/* FIXME: we should be able to access the NVRAM even if PPC_RTC is not configured */ /* FIXME: we should be able to access the NVRAM even if PPC_RTC is not configured */
ppc_md.nvram_read_val = todc_direct_read_val; ppc_md.nvram_read_val = todc_direct_read_val;
ppc_md.nvram_write_val = todc_direct_write_val; ppc_md.nvram_write_val = todc_direct_write_val;
......
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