diff mbox

[1/8] staging: omap-thermal: fix return value

Message ID 1363618756-15851-2-git-send-email-eduardo.valentin@ti.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Eduardo Valentin March 18, 2013, 2:59 p.m. UTC
Return the proper error value in _omap_bandgap_read_threshold.

Cc: Dan Carpenter <dan.carpenter@oracle.com>

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>

Comments

Dan Carpenter March 18, 2013, 4:39 p.m. UTC | #1
Thanks.

Acked-by: Dan Carpenter <dan.carpenter@orcle.com>

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Eduardo Valentin March 18, 2013, 5:20 p.m. UTC | #2
Dan,

On 18-03-2013 12:39, Dan Carpenter wrote:
> Thanks.
>
> Acked-by: Dan Carpenter <dan.carpenter@orcle.com>
>
> regards,
> dan carpenter
>
>
>
Thanks for taking the time to check this code.

Eduardo
--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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   ***/