[PATCH] mtd onenand driver: use platform_device.h instead device.h

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Kyungmin Park 2005-12-16 11:17:29 +09:00 коммит произвёл Linus Torvalds
Родитель 532a37cf8d
Коммит 27f4e08347
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -12,9 +12,9 @@
* This is a device driver for the OneNAND flash for generic boards. * This is a device driver for the OneNAND flash for generic boards.
*/ */
#include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/onenand.h> #include <linux/mtd/onenand.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
@ -39,7 +39,7 @@ static int __devinit generic_onenand_probe(struct device *dev)
{ {
struct onenand_info *info; struct onenand_info *info;
struct platform_device *pdev = to_platform_device(dev); 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; struct resource *res = pdev->resource;
unsigned long size = res->end - res->start + 1; unsigned long size = res->end - res->start + 1;
int err; int err;