drivers: uio_dmem_genirq: Don't use DMA_ERROR_CODE to indicate unmapped regions
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Fri, 16 Nov 2012 05:46:10 +0000 (14:46 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:44:10 +0000 (13:44 -0800)
commit87c4d1a7dce956b86e34329ed1b11a751ba9a8ea
treec16d799b2c39dbe51045c30ee94e9a88ec609b89
parent24fce61b0b7f1bc94970036db1f1d65b0770d168
drivers: uio_dmem_genirq: Don't use DMA_ERROR_CODE to indicate unmapped regions

DMA_ERROR_CODE is not defined on all architectures and is architecture
specific.  Instead, use the constant, ~0 to indicate unmapped regions.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/DocBook/uio-howto.tmpl
drivers/uio/uio_dmem_genirq.c