]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: add ->dma_check method
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:15:21 +0000 (20:15 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 31 Mar 2009 18:15:21 +0000 (20:15 +0200)
commit8a4a5738ba499083cf4c5668895efe220b1946d3
tree78272b711b31f43526d2c665478cc3bdb0b6e393
parent7526efaafdc835b8d6b22aa1a302e14651373908
ide: add ->dma_check method

* Add (an optional) ->dma_check method for checking if DMA can be
  used for a given command and fail DMA setup in ide_dma_prepare()
  if necessary.

* Convert alim15x3 and trm290 host drivers to use ->dma_check.

* Rename ali15x3_dma_setup() to ali_dma_check() while at it.

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/alim15x3.c
drivers/ide/ide-dma.c
drivers/ide/trm290.c
include/linux/ide.h