[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20140923194021.GA15840@amd>
Date: Tue, 23 Sep 2014 21:40:21 +0200
From: Pavel Machek <pavel@....cz>
To: kbuild test robot <fengguang.wu@...el.com>,
kernel list <linux-kernel@...r.kernel.org>
Cc: Linux Memory Management List <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>, kbuild-all@...org,
pavel@....cz, rtc-linux@...glegroups.com, dan.carpenter@...cle.com
Subject: [patch] drivers/rtc/rtc-bq32k.c fix warnings I introduced
Sorry about that, I somehow failed to notice rather severe warnings.
Signed-off-by: Pavel Machek <pavel@...x.de>
diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c
index 4c24fb0..c02e246 100644
--- a/drivers/rtc/rtc-bq32k.c
+++ b/drivers/rtc/rtc-bq32k.c
@@ -132,9 +132,7 @@ static const struct rtc_class_ops bq32k_rtc_ops = {
static int trickle_charger_of_init(struct device *dev, struct device_node *node)
{
- int plen = 0;
- const uint32_t *setup;
- const uint32_t *reg;
+ unsigned char reg;
int error;
u32 ohms = 0;
@@ -166,7 +164,7 @@ static int trickle_charger_of_init(struct device *dev, struct device_node *node)
break;
default:
- dev_err(dev, "invalid resistor value (%d)\n", *setup);
+ dev_err(dev, "invalid resistor value (%d)\n", ohms);
return -EINVAL;
}
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists