|
@@ -995,7 +995,7 @@ static void hpt3xx_disable_fast_irq(struct pci_dev *dev, u8 mcr_addr)
|
|
pci_write_config_byte(dev, mcr_addr + 1, new_mcr);
|
|
pci_write_config_byte(dev, mcr_addr + 1, new_mcr);
|
|
}
|
|
}
|
|
|
|
|
|
-static unsigned int init_chipset_hpt366(struct pci_dev *dev)
|
|
|
|
|
|
+static int init_chipset_hpt366(struct pci_dev *dev)
|
|
{
|
|
{
|
|
unsigned long io_base = pci_resource_start(dev, 4);
|
|
unsigned long io_base = pci_resource_start(dev, 4);
|
|
struct hpt_info *info = hpt3xx_get_info(&dev->dev);
|
|
struct hpt_info *info = hpt3xx_get_info(&dev->dev);
|
|
@@ -1237,7 +1237,7 @@ static unsigned int init_chipset_hpt366(struct pci_dev *dev)
|
|
hpt3xx_disable_fast_irq(dev, 0x50);
|
|
hpt3xx_disable_fast_irq(dev, 0x50);
|
|
hpt3xx_disable_fast_irq(dev, 0x54);
|
|
hpt3xx_disable_fast_irq(dev, 0x54);
|
|
|
|
|
|
- return dev->irq;
|
|
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
static u8 hpt3xx_cable_detect(ide_hwif_t *hwif)
|
|
static u8 hpt3xx_cable_detect(ide_hwif_t *hwif)
|