staging: most: aim-cdev: report error returned by alloc_chrdev_region
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 19 Aug 2016 11:09:34 +0000 (13:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 14:50:38 +0000 (16:50 +0200)
commit324e87b7e135c01725a9cef02cb8436f65e65f07
treed0517bf0cc580e6d1ca6df756c606aaa88337ad8
parent9b28e14818ad959516e99b7ba3d1fc2e5500ca51
staging: most: aim-cdev: report error returned by alloc_chrdev_region

This patch forwards the error code returned by function
alloc_chrdev_region(). It is needed to stop the module
from hiding the actual cause of failure.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c