diff mbox

OMAP: fix gpmc nand setup when no timings supplied

Message ID 1271670618-5671-1-git-send-email-mike@compulab.co.il (mailing list archive)
State Changes Requested, archived
Headers show

Commit Message

Mike Rapoport April 19, 2010, 9:50 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c
index 64d74f0..3629da3 100644
--- a/arch/arm/mach-omap2/gpmc-nand.c
+++ b/arch/arm/mach-omap2/gpmc-nand.c
@@ -83,6 +83,11 @@  static int gpmc_nand_setup(void)
 {
 	struct device *dev = &gpmc_nand_device.dev;
 
+	if (!gpmc_nand_data->gpmc_t) {
+		dev_info(dev, "Keeping gpmc timings\n");
+		return 0;
+	}
+
 	/* Set timings in GPMC */
 	if (omap2_nand_gpmc_retime() < 0) {
 		dev_err(dev, "Unable to set gpmc timings\n");