char: xilinx_hwicap: missing error code if ioremap() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Jun 2014 06:04:33 +0000 (09:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 23:59:58 +0000 (16:59 -0700)
commit8a26af30ff55bec82443e718e26efd6b3a8bba83
treea9bcc4c71db27244ed9a2e7a686cb6b5bc2c9739
parent4171ee9e3cd27718ce21f19aa00ea892655b28af
char: xilinx_hwicap: missing error code if ioremap() fails

Return -ENOMEM instead of success if ioremap() fails.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/xilinx_hwicap/xilinx_hwicap.c