power: generic-adc-battery: return meaningful error when no channel available
From: Heiko Stuebner <heiko.stuebner@...> Date: Thu, 8 May 2014 17:50:05 +0200
Commit-Message
From: Heiko Stuebner <heiko.stuebner@...> When no channel was found the driver currently always returns -ENODEV. This hides the actual error which is available in ret from the kernel and disables for example -EPROBE_DEFER handling. Signed-off-by: Heiko Stuebner <heiko.stuebner@...>
Patch-Comment
drivers/power/generic-adc-battery.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Statistics
- 1 lines added
- 3 lines removed