[PATCH] OneNAND: Use flash_platform_data

Kyungmin Park kyungmin.park at samsung.com
Sat Oct 29 03:05:48 EDT 2005


Hi

Now we use flash_platform_data instead of onenand_platform_data.

If you want to support OneNAND Sync. Burst Read, apply following patch and
enable mmcontrol 

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3057/1

Of course, you have to implement mmcontrol function in board specific files.

Thank you,

Kyungmin Park

--

diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
--- a/drivers/mtd/onenand/generic.c
+++ b/drivers/mtd/onenand/generic.c
@@ -39,7 +39,7 @@ static int __devinit generic_onenand_pro
 {
 	struct onenand_info *info;
 	struct platform_device *pdev = to_platform_device(dev);
-	struct onenand_platform_data *pdata = pdev->dev.platform_data;
+	struct flash_platform_data *pdata = pdev->dev.platform_data;
 	struct resource *res = pdev->resource;
 	unsigned long size = res->end - res->start + 1;
 	int err;
@@ -61,7 +61,8 @@ static int __devinit generic_onenand_pro
 		goto out_release_mem_region;
 	}
 
-	info->onenand.mmcontrol = pdata->mmcontrol;
+	// FIXME Enable this, If flash_platform_data has mmcontrol method
+//	info->onenand.mmcontrol = pdata->mmcontrol;
 
 	info->mtd.name = pdev->dev.bus_id;
 	info->mtd.priv = &info->onenand;





More information about the linux-mtd mailing list