1 --- a/drivers/mtd/nand/rbppc_nand.c
2 +++ b/drivers/mtd/nand/rbppc_nand.c
4 #include <linux/mtd/mtd.h>
5 #include <linux/mtd/partitions.h>
6 #include <linux/of_platform.h>
7 -#include <asm/of_platform.h>
8 -#include <asm/of_device.h>
9 +#include <linux/of_device.h>
10 +#include <linux/slab.h>
11 #include <linux/delay.h>
14 @@ -116,7 +116,7 @@ static void rbppc_nand_read_buf(struct m
16 static unsigned init_ok = 0;
18 -static int rbppc_nand_probe(struct of_device *pdev,
19 +static int rbppc_nand_probe(struct platform_device *pdev,
20 const struct of_device_id *match)
22 struct device_node *gpio;