mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-07-17 06:48:07 +00:00
ebbeb55561
Also add script used to generate patches and SRC_URI Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
From fdc0431bfce635348e459fb3d3a27972a348cacc Mon Sep 17 00:00:00 2001
|
|
From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
|
|
Date: Thu, 26 Jan 2012 15:59:00 -0500
|
|
Subject: [PATCH 65/90] hwmon: (sht15) fix bad error code
|
|
|
|
commit 6edf3c30af01854c416f8654d3d5d2652470afd4 upstream.
|
|
|
|
When no platform data was supplied, returned error code was 0.
|
|
|
|
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
|
|
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
|
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
---
|
|
drivers/hwmon/sht15.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
|
|
index fe4104c..5357925 100644
|
|
--- a/drivers/hwmon/sht15.c
|
|
+++ b/drivers/hwmon/sht15.c
|
|
@@ -883,7 +883,7 @@ static int sht15_invalidate_voltage(struct notifier_block *nb,
|
|
|
|
static int __devinit sht15_probe(struct platform_device *pdev)
|
|
{
|
|
- int ret = 0;
|
|
+ int ret;
|
|
struct sht15_data *data = kzalloc(sizeof(*data), GFP_KERNEL);
|
|
u8 status = 0;
|
|
|
|
@@ -901,6 +901,7 @@ static int __devinit sht15_probe(struct platform_device *pdev)
|
|
init_waitqueue_head(&data->wait_queue);
|
|
|
|
if (pdev->dev.platform_data == NULL) {
|
|
+ ret = -EINVAL;
|
|
dev_err(&pdev->dev, "no platform data supplied\n");
|
|
goto err_free_data;
|
|
}
|
|
--
|
|
1.7.9.4
|
|
|