|
@@ -352,7 +352,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
|
|
|
};
|
|
|
const struct ata_port_info *ppi[] = { &info_hpt366, NULL };
|
|
|
|
|
|
- void *hpriv = NULL;
|
|
|
+ const void *hpriv = NULL;
|
|
|
u32 reg1;
|
|
|
int rc;
|
|
|
|
|
@@ -383,7 +383,7 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
|
|
|
break;
|
|
|
}
|
|
|
/* Now kick off ATA set up */
|
|
|
- return ata_pci_bmdma_init_one(dev, ppi, &hpt36x_sht, hpriv, 0);
|
|
|
+ return ata_pci_bmdma_init_one(dev, ppi, &hpt36x_sht, (void *)hpriv, 0);
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_PM_SLEEP
|