Skip to content

Commit

Permalink
pata_platform: don't use generic ata_port_start
Browse files Browse the repository at this point in the history
I have a system where I have a simple IDE controller that sits on a
local bus without bus master dma capability, and thus no dma_mapping
ops defined for the device/bus.

pata_platform works great for me, with the exception of using the generic
ata_port_start which tries to do a dmam_alloc_coherent.

Looks like it doesn't need to allocate a prd table at all, so replace it
with a dummy function instead.

Signed-off-by: Olof Johansson <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
olofj authored and Jeff Garzik committed May 11, 2007
1 parent b196fc6 commit b9a3b4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/ata/pata_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ static int pata_platform_set_mode(struct ata_port *ap, struct ata_device **unuse
return 0;
}

static int ata_dummy_ret0(struct ata_port *ap) { return 0; }

static struct scsi_host_template pata_platform_sht = {
.module = THIS_MODULE,
.name = DRV_NAME,
Expand Down Expand Up @@ -91,7 +93,7 @@ static struct ata_port_operations pata_platform_port_ops = {
.irq_on = ata_irq_on,
.irq_ack = ata_irq_ack,

.port_start = ata_port_start,
.port_start = ata_dummy_ret0,
};

static void pata_platform_setup_port(struct ata_ioports *ioaddr,
Expand Down

0 comments on commit b9a3b4d

Please sign in to comment.