mtd/drivers/mtd/nand s3c2410.c,1.2,1.3

bjd at infradead.org bjd at infradead.org
Mon Oct 11 20:39:45 EDT 2004


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv12460

Modified Files:
	s3c2410.c 
Log Message:
fixed check for platform_data being NULL causing an oops if there
was no platform data available


Index: s3c2410.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/s3c2410.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- s3c2410.c	28 Sep 2004 22:06:08 -0000	1.2
+++ s3c2410.c	12 Oct 2004 00:39:42 -0000	1.3
@@ -217,8 +217,10 @@
 			return;
 		}
 
-		if (info->platform->select_chip != NULL)
-			(info->platform->select_chip)(nmtd->set, chip);
+		if (info->platfrom != NULL) {
+			if (info->platform->select_chip != NULL)
+				(info->platform->select_chip)(nmtd->set, chip);
+		}
 
 		cur &= ~S3C2410_NFCONF_nFCE;
 	}





More information about the linux-mtd-cvs mailing list