From: Eduardo Valentin Date: Tue, 19 Mar 2013 14:54:17 +0000 (-0400) Subject: staging: omap-thermal: fix return value X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=648b4c6c4cdff112c905b4c72e095d913b856165;p=openwrt%2Fstaging%2Fblogic.git staging: omap-thermal: fix return value Return the proper error value in _omap_bandgap_read_threshold. Acked-by: Dan Carpenter Signed-off-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- 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 ***/