init dma masks in pnp_dev
authorDavid Brownell <david-b@pacbell.net>
Tue, 8 May 2007 07:25:29 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:00 +0000 (11:15 -0700)
commit2e17c5508fa015f2c7690e29041f437e9308c64f
treed53402b77180827931fc31b190be53c6b20ec2c0
parent6f8bc500a10ab9cb3861e5bb71155d7bd2bbd2d5
init dma masks in pnp_dev

PNP now initializes device dma masks, which prevents oopses when generic
dma calls are made using pnp device nodes.

This assumes PNP only uses ISA DMA, with 24 bit addresses; and that it's
safe to init those masks for all devices (rather than finding out which
devices have been assigned DMA channels, and handling only those).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Adam Belay <abelay@novell.com>
Cc: Jaroslav Kysela <perex@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pnp/core.c
include/linux/pnp.h