forked from Minki/linux
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>
This commit is contained in:
parent
58af42a447
commit
648b4c6c4c
@ -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 ***/
|
||||
|
Loading…
Reference in New Issue
Block a user