leds: drivers/leds/leds-ss4200.c: fix return statement
authorakpm@linux-foundation.org <akpm@linux-foundation.org>
Sat, 14 Nov 2009 03:56:37 +0000 (19:56 -0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 17 Dec 2009 11:36:40 +0000 (11:36 +0000)
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 <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/leds-ss4200.c

index c7f634727d6794a2f715cdf4a49ea8e28a274718..97f04984c1caae3175d7bd4d6a839b0ed8d2efac 100644 (file)
@@ -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;