diff options
-rw-r--r-- | arch/arm/mach-omap2/gpmc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index c6255f788ab2..0cf239231d36 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c | |||
@@ -150,7 +150,8 @@ static unsigned gpmc_irq_start; | |||
150 | static struct resource gpmc_mem_root; | 150 | static struct resource gpmc_mem_root; |
151 | static struct resource gpmc_cs_mem[GPMC_CS_NUM]; | 151 | static struct resource gpmc_cs_mem[GPMC_CS_NUM]; |
152 | static DEFINE_SPINLOCK(gpmc_mem_lock); | 152 | static DEFINE_SPINLOCK(gpmc_mem_lock); |
153 | static unsigned int gpmc_cs_map; /* flag for cs which are initialized */ | 153 | /* Define chip-selects as reserved by default until probe completes */ |
154 | static unsigned int gpmc_cs_map = ((1 << GPMC_CS_NUM) - 1); | ||
154 | static struct device *gpmc_dev; | 155 | static struct device *gpmc_dev; |
155 | static int gpmc_irq; | 156 | static int gpmc_irq; |
156 | static resource_size_t phys_base, mem_size; | 157 | static resource_size_t phys_base, mem_size; |
@@ -1123,6 +1124,9 @@ int gpmc_calc_timings(struct gpmc_timings *gpmc_t, | |||
1123 | /* TODO: remove, see function definition */ | 1124 | /* TODO: remove, see function definition */ |
1124 | gpmc_convert_ps_to_ns(gpmc_t); | 1125 | gpmc_convert_ps_to_ns(gpmc_t); |
1125 | 1126 | ||
1127 | /* Now the GPMC is initialised, unreserve the chip-selects */ | ||
1128 | gpmc_cs_map = 0; | ||
1129 | |||
1126 | return 0; | 1130 | return 0; |
1127 | } | 1131 | } |
1128 | 1132 | ||