X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fide%2Fide-dma.c;h=c481be8b807f6fe9345ce20bdfd0da16d8eaeee2;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=7c3a13e1cf647a4cbca6ee39c327c36f9de8d422;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 7c3a13e1c..c481be8b8 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c @@ -74,6 +74,7 @@ * */ +#include #include #include #include @@ -205,7 +206,8 @@ int ide_build_sglist(ide_drive_t *drive, struct request *rq) ide_hwif_t *hwif = HWIF(drive); struct scatterlist *sg = hwif->sg_table; - BUG_ON((rq->flags & REQ_DRIVE_TASKFILE) && rq->nr_sectors > 256); + if ((rq->flags & REQ_DRIVE_TASKFILE) && rq->nr_sectors > 256) + BUG(); ide_map_sg(drive, rq); @@ -750,7 +752,7 @@ void ide_dma_verbose(ide_drive_t *drive) goto bug_dma_off; printk(", DMA"); } else if (id->field_valid & 1) { - goto bug_dma_off; + printk(", BUG"); } return; bug_dma_off: @@ -945,7 +947,8 @@ void ide_setup_dma (ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_p } printk("\n"); - BUG_ON(!hwif->dma_master); + if (!(hwif->dma_master)) + BUG(); } EXPORT_SYMBOL_GPL(ide_setup_dma);