diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/gpmc-nand.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index d4e803cf549f..c0320d2eb40f 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach-omap2/gpmc-nand.c | |||
@@ -90,12 +90,14 @@ int __init gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data) | |||
90 | gpmc_nand_device.dev.platform_data = gpmc_nand_data; | 90 | gpmc_nand_device.dev.platform_data = gpmc_nand_data; |
91 | 91 | ||
92 | err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE, | 92 | err = gpmc_cs_request(gpmc_nand_data->cs, NAND_IO_SIZE, |
93 | &gpmc_nand_data->phys_base); | 93 | (unsigned long *)&gpmc_nand_resource.start); |
94 | if (err < 0) { | 94 | if (err < 0) { |
95 | dev_err(dev, "Cannot request GPMC CS\n"); | 95 | dev_err(dev, "Cannot request GPMC CS\n"); |
96 | return err; | 96 | return err; |
97 | } | 97 | } |
98 | 98 | ||
99 | gpmc_nand_resource.end = gpmc_nand_resource.start + NAND_IO_SIZE - 1; | ||
100 | |||
99 | /* Set timings in GPMC */ | 101 | /* Set timings in GPMC */ |
100 | err = omap2_nand_gpmc_retime(gpmc_nand_data); | 102 | err = omap2_nand_gpmc_retime(gpmc_nand_data); |
101 | if (err < 0) { | 103 | if (err < 0) { |