1 --- a/drivers/ata/pata_rbppc_cf.c
2 +++ b/drivers/ata/pata_rbppc_cf.c
4 #include <linux/libata.h>
5 #include <linux/of_platform.h>
6 #include <linux/ata_platform.h>
7 +#include <linux/slab.h>
11 @@ -510,7 +511,7 @@ static struct ata_port_operations rbppc_
12 .sff_irq_clear = rbppc_cf_dummy_noret,
15 -static int rbppc_cf_init_info(struct of_device *pdev, struct rbppc_cf_info *info) {
16 +static int rbppc_cf_init_info(struct platform_device *pdev, struct rbppc_cf_info *info) {
17 struct device_node *np;
20 @@ -579,7 +580,7 @@ static int rbppc_cf_init_info(struct of_
24 -static int rbppc_cf_probe(struct of_device *pdev,
25 +static int rbppc_cf_probe(struct platform_device *pdev,
26 const struct of_device_id *match)
28 struct ata_host *host;
29 @@ -654,7 +655,7 @@ err_info:
33 -static int rbppc_cf_remove(struct of_device *pdev)
34 +static int rbppc_cf_remove(struct platform_device *pdev)
36 struct device *dev = &pdev->dev;
37 struct ata_host *host = dev_get_drvdata(dev);