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>
{
//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;
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