diff options
author | Samuel Iglesias Gonsalvez <siglesias@igalia.com> | 2012-09-27 12:37:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-19 11:45:11 -0700 |
commit | 58b2c0ca0bd16ddefd1d981fe8748ca8083294c6 (patch) | |
tree | 743ddc2d22dc0023b9f18f973834418961e1730a | |
parent | 26c295cb4bd2a18f943a9962c6f954c8daee90f7 (diff) | |
download | linux-3.10-58b2c0ca0bd16ddefd1d981fe8748ca8083294c6.tar.gz linux-3.10-58b2c0ca0bd16ddefd1d981fe8748ca8083294c6.tar.bz2 linux-3.10-58b2c0ca0bd16ddefd1d981fe8748ca8083294c6.zip |
Staging: ipack: fix wrong return value.
In case it is not possible to remap the memory, it returns 0 and
the driver thinks that everything went fine.
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/ipack/ipack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ipack/ipack.c b/drivers/staging/ipack/ipack.c index 5bd462b9e38..75bfecfe362 100644 --- a/drivers/staging/ipack/ipack.c +++ b/drivers/staging/ipack/ipack.c @@ -355,7 +355,7 @@ static int ipack_device_read_id(struct ipack_device *dev) dev->region[IPACK_ID_SPACE].size); if (!idmem) { dev_err(&dev->dev, "error mapping memory\n"); - return ret; + return -ENOMEM; } /* Determine ID PROM Data Format. If we find the ids "IPAC" or "IPAH" |