staging: omap-thermal: fix return value
authorEduardo Valentin <eduardo.valentin@ti.com>
Tue, 19 Mar 2013 14:54:17 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:23:23 +0000 (11:23 -0700)
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>
drivers/staging/omap-thermal/omap-bandgap.c

index 33bfe3bbc3670aa7349d814fa40fd3e2c9b53839..cb7aa356e96393baca3b7679fee6a53742f9fed1 100644 (file)
@@ -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   ***/