parisc: ccio-dma: Handle return NULL error from ioremap_nocache
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 2 Feb 2017 13:22:34 +0000 (18:52 +0530)
committerHelge Deller <deller@gmx.de>
Sat, 25 Feb 2017 21:27:30 +0000 (22:27 +0100)
commite28f701b21ee4b4eb716e4717fa2aa78c28a8523
treee4ad1fe08defaf2214da3a4f716f9e9d4121096d
parent09b871ffd4d8ddc005a9480fb69ff1897caaeb1f
parisc: ccio-dma: Handle return NULL error from ioremap_nocache

Fix error paths and return -ENOMEM instead of '1'.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/ccio-dma.c