From: akpm@linux-foundation.org Date: Sat, 14 Nov 2009 03:56:37 +0000 (-0800) Subject: leds: drivers/leds/leds-ss4200.c: fix return statement X-Git-Tag: v2.6.33-rc1~11^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eedd898f6910b88aa2052461ad0c3f443b45bb00;p=platform%2Fkernel%2Flinux-3.10.git leds: drivers/leds/leds-ss4200.c: fix return statement drivers/leds/leds-ss4200.c: In function 'ich7_lpc_probe': drivers/leds/leds-ss4200.c:353: warning: 'return' with no value, in function returning non-void Signed-off-by: Andrew Morton Signed-off-by: Richard Purdie --- diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c index c7f6347..97f0498 100644 --- a/drivers/leds/leds-ss4200.c +++ b/drivers/leds/leds-ss4200.c @@ -350,7 +350,7 @@ static int __devinit ich7_lpc_probe(struct pci_dev *dev, status = pci_enable_device(dev); if (status) { dev_err(&dev->dev, "pci_enable_device failed\n"); - return; + return -EIO; } nas_gpio_pci_dev = dev;