ide: remove ide_setup_dma()
Export sff_dma_ops and then remove ide_setup_dma(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -316,15 +316,14 @@ static u8 __devinit palm_bk3710_cable_detect(ide_hwif_t *hwif)
|
|||||||
static int __devinit palm_bk3710_init_dma(ide_hwif_t *hwif,
|
static int __devinit palm_bk3710_init_dma(ide_hwif_t *hwif,
|
||||||
const struct ide_port_info *d)
|
const struct ide_port_info *d)
|
||||||
{
|
{
|
||||||
unsigned long base =
|
|
||||||
hwif->io_ports.data_addr - IDE_PALM_ATA_PRI_REG_OFFSET;
|
|
||||||
|
|
||||||
printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name);
|
printk(KERN_INFO " %s: MMIO-DMA\n", hwif->name);
|
||||||
|
|
||||||
if (ide_allocate_dma_engine(hwif))
|
if (ide_allocate_dma_engine(hwif))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ide_setup_dma(hwif, base);
|
hwif->dma_base = hwif->io_ports.data_addr - IDE_PALM_ATA_PRI_REG_OFFSET;
|
||||||
|
|
||||||
|
hwif->dma_ops = &sff_dma_ops;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -878,7 +878,7 @@ int ide_allocate_dma_engine(ide_hwif_t *hwif)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ide_allocate_dma_engine);
|
EXPORT_SYMBOL_GPL(ide_allocate_dma_engine);
|
||||||
|
|
||||||
static const struct ide_dma_ops sff_dma_ops = {
|
const struct ide_dma_ops sff_dma_ops = {
|
||||||
.dma_host_set = ide_dma_host_set,
|
.dma_host_set = ide_dma_host_set,
|
||||||
.dma_setup = ide_dma_setup,
|
.dma_setup = ide_dma_setup,
|
||||||
.dma_exec_cmd = ide_dma_exec_cmd,
|
.dma_exec_cmd = ide_dma_exec_cmd,
|
||||||
@@ -888,13 +888,5 @@ static const struct ide_dma_ops sff_dma_ops = {
|
|||||||
.dma_timeout = ide_dma_timeout,
|
.dma_timeout = ide_dma_timeout,
|
||||||
.dma_lost_irq = ide_dma_lost_irq,
|
.dma_lost_irq = ide_dma_lost_irq,
|
||||||
};
|
};
|
||||||
|
EXPORT_SYMBOL_GPL(sff_dma_ops);
|
||||||
void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
|
|
||||||
{
|
|
||||||
hwif->dma_base = base;
|
|
||||||
|
|
||||||
hwif->dma_ops = &sff_dma_ops;
|
|
||||||
}
|
|
||||||
|
|
||||||
EXPORT_SYMBOL_GPL(ide_setup_dma);
|
|
||||||
#endif /* CONFIG_BLK_DEV_IDEDMA_SFF */
|
#endif /* CONFIG_BLK_DEV_IDEDMA_SFF */
|
||||||
|
@@ -483,7 +483,9 @@ static int __devinit init_dma_ali15x3(ide_hwif_t *hwif,
|
|||||||
if (ide_allocate_dma_engine(hwif))
|
if (ide_allocate_dma_engine(hwif))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ide_setup_dma(hwif, base);
|
hwif->dma_base = base;
|
||||||
|
|
||||||
|
hwif->dma_ops = &sff_dma_ops;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -1346,7 +1346,9 @@ static int __devinit init_dma_hpt366(ide_hwif_t *hwif,
|
|||||||
if (ide_allocate_dma_engine(hwif))
|
if (ide_allocate_dma_engine(hwif))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ide_setup_dma(hwif, base);
|
hwif->dma_base = base;
|
||||||
|
|
||||||
|
hwif->dma_ops = &sff_dma_ops;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -377,7 +377,9 @@ int ide_hwif_setup_dma(ide_hwif_t *hwif, const struct ide_port_info *d)
|
|||||||
if (ide_allocate_dma_engine(hwif))
|
if (ide_allocate_dma_engine(hwif))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ide_setup_dma(hwif, base);
|
hwif->dma_base = base;
|
||||||
|
|
||||||
|
hwif->dma_ops = &sff_dma_ops;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -1007,6 +1007,7 @@ void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *);
|
|||||||
#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
|
#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
|
||||||
int ide_pci_set_master(struct pci_dev *, const char *);
|
int ide_pci_set_master(struct pci_dev *, const char *);
|
||||||
unsigned long ide_pci_dma_base(ide_hwif_t *, const struct ide_port_info *);
|
unsigned long ide_pci_dma_base(ide_hwif_t *, const struct ide_port_info *);
|
||||||
|
extern const struct ide_dma_ops sff_dma_ops;
|
||||||
int ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *);
|
int ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *);
|
||||||
#else
|
#else
|
||||||
static inline int ide_hwif_setup_dma(ide_hwif_t *hwif,
|
static inline int ide_hwif_setup_dma(ide_hwif_t *hwif,
|
||||||
@@ -1164,7 +1165,6 @@ void ide_destroy_dmatable(ide_drive_t *);
|
|||||||
extern int ide_build_dmatable(ide_drive_t *, struct request *);
|
extern int ide_build_dmatable(ide_drive_t *, struct request *);
|
||||||
int ide_allocate_dma_engine(ide_hwif_t *);
|
int ide_allocate_dma_engine(ide_hwif_t *);
|
||||||
void ide_release_dma_engine(ide_hwif_t *);
|
void ide_release_dma_engine(ide_hwif_t *);
|
||||||
void ide_setup_dma(ide_hwif_t *, unsigned long);
|
|
||||||
|
|
||||||
void ide_dma_host_set(ide_drive_t *, int);
|
void ide_dma_host_set(ide_drive_t *, int);
|
||||||
extern int ide_dma_setup(ide_drive_t *);
|
extern int ide_dma_setup(ide_drive_t *);
|
||||||
|
Reference in New Issue
Block a user