diff options
Diffstat (limited to 'drivers/ide/ppc/pmac.c')
-rw-r--r-- | drivers/ide/ppc/pmac.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index 45fc36f0f219..ca72ad202ebc 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c | |||
@@ -2004,20 +2004,19 @@ static void pmac_ide_dma_host_on(ide_drive_t *drive) | |||
2004 | { | 2004 | { |
2005 | } | 2005 | } |
2006 | 2006 | ||
2007 | static int | 2007 | static void |
2008 | pmac_ide_dma_lostirq (ide_drive_t *drive) | 2008 | pmac_ide_dma_lost_irq (ide_drive_t *drive) |
2009 | { | 2009 | { |
2010 | pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; | 2010 | pmac_ide_hwif_t* pmif = (pmac_ide_hwif_t *)HWIF(drive)->hwif_data; |
2011 | volatile struct dbdma_regs __iomem *dma; | 2011 | volatile struct dbdma_regs __iomem *dma; |
2012 | unsigned long status; | 2012 | unsigned long status; |
2013 | 2013 | ||
2014 | if (pmif == NULL) | 2014 | if (pmif == NULL) |
2015 | return 0; | 2015 | return; |
2016 | dma = pmif->dma_regs; | 2016 | dma = pmif->dma_regs; |
2017 | 2017 | ||
2018 | status = readl(&dma->status); | 2018 | status = readl(&dma->status); |
2019 | printk(KERN_ERR "ide-pmac lost interrupt, dma status: %lx\n", status); | 2019 | printk(KERN_ERR "ide-pmac lost interrupt, dma status: %lx\n", status); |
2020 | return 0; | ||
2021 | } | 2020 | } |
2022 | 2021 | ||
2023 | /* | 2022 | /* |
@@ -2058,7 +2057,7 @@ pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) | |||
2058 | hwif->dma_host_off = &pmac_ide_dma_host_off; | 2057 | hwif->dma_host_off = &pmac_ide_dma_host_off; |
2059 | hwif->dma_host_on = &pmac_ide_dma_host_on; | 2058 | hwif->dma_host_on = &pmac_ide_dma_host_on; |
2060 | hwif->ide_dma_timeout = &__ide_dma_timeout; | 2059 | hwif->ide_dma_timeout = &__ide_dma_timeout; |
2061 | hwif->ide_dma_lostirq = &pmac_ide_dma_lostirq; | 2060 | hwif->dma_lost_irq = &pmac_ide_dma_lost_irq; |
2062 | 2061 | ||
2063 | hwif->atapi_dma = 1; | 2062 | hwif->atapi_dma = 1; |
2064 | switch(pmif->kind) { | 2063 | switch(pmif->kind) { |