Staging: pata_rdc: convert code to work in 2.6.29
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Jun 2009 05:45:46 +0000 (22:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:56 +0000 (11:00 -0700)
This fixes build problems in the pata_rdc driver due to api changes in
the libata layer.

Cc: Kevin Huang <Kevin.Huang@rdc.com.tw>
Cc: Tomy Wang <Tomy.Wang@rdc.com.tw>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/pata_rdc/pata_rdc.c

index 657e9971f41cb84a9cca0c21ab6bb22453ad70a3..5bc74ed0532839379058437e7fb355ad0c65992d 100644 (file)
@@ -148,7 +148,7 @@ static int __devinit rdc_init_one(
 {
     //struct device *dev = &pdev->dev;
     struct ata_port_info port_info[2];
-    struct ata_port_info *ppinfo[] = { &port_info[0], &port_info[1] };
+    const struct ata_port_info *ppinfo[] = { &port_info[0], &port_info[1] };
 
     int rc;
 
@@ -174,7 +174,7 @@ static int __devinit rdc_init_one(
 
     pci_intx(pdev, 1);  // enable interrupt
 
-    return ata_pci_init_one(pdev, ppinfo);
+    return ata_pci_sff_init_one(pdev, ppinfo, &rdc_pata_sht, NULL);
 }
 
 // callback function for ata_port