]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit783b03c954012e84fd32b40c83a6cb678cecfaff
treed0517bf0cc580e6d1ca6df756c606aaa88337ad8
parent884047e0ece30057030478b0b81456776f5d7374
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