Return the proper error value in _omap_bandgap_read_threshold.
Acked-by: Dan Carpenter <[email protected]>
Signed-off-by: Eduardo Valentin <[email protected]>
---
drivers/staging/omap-thermal/omap-bandgap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c
b/drivers/staging/omap-thermal/omap-bandgap.c
index 33bfe3b..cb7aa35 100644
--- a/drivers/staging/omap-thermal/omap-bandgap.c
+++ b/drivers/staging/omap-thermal/omap-bandgap.c
@@ -566,7 +566,7 @@ int _omap_bandgap_read_threshold(struct omap_bandgap
*bg_ptr, int id,
*val = temp;
exit:
- return 0;
+ return ret;
}
/*** Exposed APIs ***/
--
1.7.7.1.488.ge8e1c
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/