aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-03-19 10:54:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 11:23:23 -0700
commit648b4c6c4cdff112c905b4c72e095d913b856165 (patch)
tree08ef44e6a2cea8658965f113ceae03ffa3cb8434
parentstaging: csr: Fix typos in csr (diff)
downloadlinux-dev-648b4c6c4cdff112c905b4c72e095d913b856165.tar.xz
linux-dev-648b4c6c4cdff112c905b4c72e095d913b856165.zip
staging: omap-thermal: fix return value
Return the proper error value in _omap_bandgap_read_threshold. Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/omap-thermal/omap-bandgap.c2
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 33bfe3bbc367..cb7aa356e963 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 ***/