diff options
author | Alexandros C. Couloumbis <alex@ozo.com> | 2010-10-25 17:59:14 +0000 |
---|---|---|
committer | Alexandros C. Couloumbis <alex@ozo.com> | 2010-10-25 17:59:14 +0000 |
commit | e8e1084654f50904e6bf77b70b2de3f137d7b3ec (patch) | |
tree | 8333c5767087ec49b473467a4ca747fd31f574fd /target/linux/mpc83xx/patches-2.6.36/036-pata_rbppc_fix.patch | |
parent | 0ee31ca22e253b027abd71d683e6f85350c6e2a9 (diff) | |
download | upstream-e8e1084654f50904e6bf77b70b2de3f137d7b3ec.tar.gz upstream-e8e1084654f50904e6bf77b70b2de3f137d7b3ec.tar.bz2 upstream-e8e1084654f50904e6bf77b70b2de3f137d7b3ec.zip |
linux/mpc83xx: add preliminary 2.6.36 kernel support
SVN-Revision: 23633
Diffstat (limited to 'target/linux/mpc83xx/patches-2.6.36/036-pata_rbppc_fix.patch')
-rw-r--r-- | target/linux/mpc83xx/patches-2.6.36/036-pata_rbppc_fix.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/mpc83xx/patches-2.6.36/036-pata_rbppc_fix.patch b/target/linux/mpc83xx/patches-2.6.36/036-pata_rbppc_fix.patch new file mode 100644 index 0000000000..dcbc2b8d3a --- /dev/null +++ b/target/linux/mpc83xx/patches-2.6.36/036-pata_rbppc_fix.patch @@ -0,0 +1,37 @@ +--- a/drivers/ata/pata_rbppc_cf.c ++++ b/drivers/ata/pata_rbppc_cf.c +@@ -15,6 +15,7 @@ + #include <linux/libata.h> + #include <linux/of_platform.h> + #include <linux/ata_platform.h> ++#include <linux/slab.h> + + #define DEBUG_UPM 0 + +@@ -510,7 +511,7 @@ static struct ata_port_operations rbppc_ + .sff_irq_clear = rbppc_cf_dummy_noret, + }; + +-static int rbppc_cf_init_info(struct of_device *pdev, struct rbppc_cf_info *info) { ++static int rbppc_cf_init_info(struct platform_device *pdev, struct rbppc_cf_info *info) { + struct device_node *np; + struct resource res; + const u32 *u32ptr; +@@ -579,7 +580,7 @@ static int rbppc_cf_init_info(struct of_ + return 0; + } + +-static int rbppc_cf_probe(struct of_device *pdev, ++static int rbppc_cf_probe(struct platform_device *pdev, + const struct of_device_id *match) + { + struct ata_host *host; +@@ -654,7 +655,7 @@ err_info: + return err; + } + +-static int rbppc_cf_remove(struct of_device *pdev) ++static int rbppc_cf_remove(struct platform_device *pdev) + { + struct device *dev = &pdev->dev; + struct ata_host *host = dev_get_drvdata(dev); |