[PATCH] mtd onenand driver: use platform_device.h instead device.h
authorKyungmin Park <kyungmin.park@samsung.com>
Fri, 16 Dec 2005 02:17:29 +0000 (11:17 +0900)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 19 Dec 2005 00:29:11 +0000 (16:29 -0800)
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/onenand/generic.c

index 48cce431f89f3ebe498fc8673ee69606c5017848..45c077d0f0630289f9763e35beeccf11ca285cc4 100644 (file)
@@ -12,9 +12,9 @@
  *   This is a device driver for the OneNAND flash for generic boards.
  */
 
-#include <linux/device.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/platform_device.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/onenand.h>
 #include <linux/mtd/partitions.h>
@@ -39,7 +39,7 @@ static int __devinit generic_onenand_probe(struct device *dev)
 {
        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;