linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix return value from __devinit
@ 2012-01-26 18:40 Danny Kukawka
  0 siblings, 0 replies; only message in thread
From: Danny Kukawka @ 2012-01-26 18:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: Richard Purdie, stable

Fix return value from __devinit and -Wuninitialized compiler
warning.
---
 drivers/leds/leds-lp5521.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index 21301f6..b3ee64c 100644
--- a/drivers/leds/leds-lp5521.c
+++ b/drivers/leds/leds-lp5521.c
@@ -695,6 +695,7 @@ static int __devinit lp5521_probe(struct i2c_client *client,
 	lp5521_read(client, LP5521_REG_R_CURRENT, &buf);
 	if (buf != LP5521_REG_R_CURR_DEFAULT) {
 		dev_err(&client->dev, "error in reseting chip\n");
+		ret = -EIO;
 		goto fail2;
 	}
 	usleep_range(10000, 20000);
-- 
1.7.7.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-26 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-26 18:40 [PATCH] fix return value from __devinit Danny Kukawka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).