Skip to content

Commit

Permalink
[PATCH] mtd onenand driver: use platform_device.h instead device.h
Browse files Browse the repository at this point in the history
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Kyungmin Park authored and Linus Torvalds committed Dec 19, 2005
1 parent 532a37c commit 27f4e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/onenand/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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;
Expand Down

0 comments on commit 27f4e08

Please sign in to comment.