diff options
Diffstat (limited to 'arch/arm/mach-omap2/gpmc.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 7027cdc1ba49..5bc3ca03551c 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -552,9 +552,10 @@ void __init gpmc_init(void) | |||
552 | #ifdef CONFIG_ARCH_OMAP3 | 552 | #ifdef CONFIG_ARCH_OMAP3 |
553 | static struct omap3_gpmc_regs gpmc_context; | 553 | static struct omap3_gpmc_regs gpmc_context; |
554 | 554 | ||
555 | void omap3_gpmc_save_context() | 555 | void omap3_gpmc_save_context(void) |
556 | { | 556 | { |
557 | int i; | 557 | int i; |
558 | |||
558 | gpmc_context.sysconfig = gpmc_read_reg(GPMC_SYSCONFIG); | 559 | gpmc_context.sysconfig = gpmc_read_reg(GPMC_SYSCONFIG); |
559 | gpmc_context.irqenable = gpmc_read_reg(GPMC_IRQENABLE); | 560 | gpmc_context.irqenable = gpmc_read_reg(GPMC_IRQENABLE); |
560 | gpmc_context.timeout_ctrl = gpmc_read_reg(GPMC_TIMEOUT_CONTROL); | 561 | gpmc_context.timeout_ctrl = gpmc_read_reg(GPMC_TIMEOUT_CONTROL); |
@@ -583,9 +584,10 @@ void omap3_gpmc_save_context() | |||
583 | } | 584 | } |
584 | } | 585 | } |
585 | 586 | ||
586 | void omap3_gpmc_restore_context() | 587 | void omap3_gpmc_restore_context(void) |
587 | { | 588 | { |
588 | int i; | 589 | int i; |
590 | |||
589 | gpmc_write_reg(GPMC_SYSCONFIG, gpmc_context.sysconfig); | 591 | gpmc_write_reg(GPMC_SYSCONFIG, gpmc_context.sysconfig); |
590 | gpmc_write_reg(GPMC_IRQENABLE, gpmc_context.irqenable); | 592 | gpmc_write_reg(GPMC_IRQENABLE, gpmc_context.irqenable); |
591 | gpmc_write_reg(GPMC_TIMEOUT_CONTROL, gpmc_context.timeout_ctrl); | 593 | gpmc_write_reg(GPMC_TIMEOUT_CONTROL, gpmc_context.timeout_ctrl); |