summaryrefslogtreecommitdiff
path: root/target/wrap/patches/fix-pata-sc1200.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/wrap/patches/fix-pata-sc1200.patch')
-rw-r--r--target/wrap/patches/fix-pata-sc1200.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/wrap/patches/fix-pata-sc1200.patch b/target/wrap/patches/fix-pata-sc1200.patch
new file mode 100644
index 000000000..c3d3ce527
--- /dev/null
+++ b/target/wrap/patches/fix-pata-sc1200.patch
@@ -0,0 +1,12 @@
+diff -Nur linux-2.6.31.5.orig/drivers/ata/pata_sc1200.c linux-2.6.31.5/drivers/ata/pata_sc1200.c
+--- linux-2.6.31.5.orig/drivers/ata/pata_sc1200.c 2009-10-23 00:57:56.000000000 +0200
++++ linux-2.6.31.5/drivers/ata/pata_sc1200.c 2009-11-22 19:19:29.000000000 +0100
+@@ -236,7 +236,7 @@
+ .port_ops = &sc1200_port_ops
+ };
+ /* Can't enable port 2 yet, see top comments */
+- const struct ata_port_info *ppi[] = { &info, };
++ const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info };
+
+ return ata_pci_sff_init_one(dev, ppi, &sc1200_sht, NULL);
+ }