ide: fix IDE_HFLAG_NO_ATAPI_DMA handling in config_drive_for_dma()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 5 Nov 2007 20:42:30 +0000 (21:42 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 5 Nov 2007 20:42:30 +0000 (21:42 +0100)
commitbcbf6ee3eb5212ff774161cae15ce4f92f7edafb
treecb14d5e4f1e86dcbcc791f966e013dce0d26b97c
parent01745112de5f721dd5afb06bc60b4a1e65e397ce
ide: fix IDE_HFLAG_NO_ATAPI_DMA handling in config_drive_for_dma()

commit 33c1002ed912ac9dacedd5d5b166da3b72d18460 incorrectly changed return
value from '0' to '-1', fix it (ns87415 was the only host driver affected
since it uses both IDE_HFLAG_TRUST_BIOS_FOR_DMA and IDE_HFLAG_NO_ATAPI_DMA).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-dma.c