Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Kyungmin Park and committed by
Linus Torvalds
27f4e083 532a37cf

+2 -2
+2 -2
drivers/mtd/onenand/generic.c
··· 12 12 * This is a device driver for the OneNAND flash for generic boards. 13 13 */ 14 14 15 - #include <linux/device.h> 16 15 #include <linux/module.h> 17 16 #include <linux/init.h> 17 + #include <linux/platform_device.h> 18 18 #include <linux/mtd/mtd.h> 19 19 #include <linux/mtd/onenand.h> 20 20 #include <linux/mtd/partitions.h> ··· 39 39 { 40 40 struct onenand_info *info; 41 41 struct platform_device *pdev = to_platform_device(dev); 42 - struct onenand_platform_data *pdata = pdev->dev.platform_data; 42 + struct flash_platform_data *pdata = pdev->dev.platform_data; 43 43 struct resource *res = pdev->resource; 44 44 unsigned long size = res->end - res->start + 1; 45 45 int err;