Sorry about that, I somehow failed to notice rather severe warnings.

Signed-off-by: Pavel Machek <pa...@denx.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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to