From: Kyungmin Park <kyungmin.park@samsung.com>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] OneNAND: Use flash_platform_data
Date: Sat, 29 Oct 2005 16:05:48 +0900 [thread overview]
Message-ID: <0IP40047811OXJ@mmp1.samsung.com> (raw)
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;
reply other threads:[~2005-10-29 7:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0IP40047811OXJ@mmp1.samsung.com \
--to=kyungmin.park@samsung.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox