]> git.baikalelectronics.ru Git - kernel.git/commit
PNP: don't fail device init if no DMA channel available
authorJan Beulich <jbeulich@novell.com>
Wed, 17 Oct 2007 06:31:07 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:04 +0000 (08:43 -0700)
commit5f8d4979965b22b74d62e8a9ff7f4ede3bb39a43
tree7af187e0de1b0d11ee39610eeb23d204c76b1e02
parentd165eb0ef86accdaca253b51f61eb3edb82969a1
PNP: don't fail device init if no DMA channel available

Most drivers for devices supporting ISA DMA can operate without DMA as well
(falling back zo PIO).  Thus it seems inappropriate for PNP to fail device
initialization in case none of the possible DMA channels are available.
Instead, it should be left to the driver to decide what to do if
request_dma() fails.

The patch at once adjusts the code to account for the fact that
pnp_assign_dma() now doesn't need to report failure anymore.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pnp/manager.c