summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-12-05 08:43:10 +0100
committerJeff Garzik <jeff@garzik.org>2008-01-23 11:24:14 +0100
commitf92a26365a72333f418abe82700c6030d4a1a807 (patch)
tree73bb3ae684abfabf2d0aecac33af1a3f2112afc4 /drivers/leds
parentlibata: kill non-sg DMA interface (diff)
downloadlinux-f92a26365a72333f418abe82700c6030d4a1a807.tar.xz
linux-f92a26365a72333f418abe82700c6030d4a1a807.zip
libata: change ATA_QCFLAG_DMAMAP semantics
ATA_QCFLAG_DMAMAP was a bit peculiar in that it got set during qc initialization and cleared if DMA mapping wasn't necessary. Make it more straight forward by making the following changes. * Don't set it during initialization. Set it after DMA is actually mapped. * Add BUG_ON() to guarantee that there is data to transfer if DMAMAP is set. This always holds for the current code. The BUG_ON() is for docummentation and sanity check. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions