pci_enable_result is defined using the __must_check macro but leds-ss4200 is not checking the return value. This patch solves the issue Signed-off-by: Javier Martinez Canillas <martinez.javier@xxxxxxxxx> --- drivers/leds/leds-ss4200.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c index 0ec4ec3..1e72383 100644 --- a/drivers/leds/leds-ss4200.c +++ b/drivers/leds/leds-ss4200.c @@ -347,7 +347,10 @@ static int __devinit ich7_lpc_probe(struct pci_dev *dev, int status = 0; u32 gc = 0; - pci_enable_device(dev); + if ((status == pci_enable_device(dev))) { + dev_err(&dev->dev, "pci_enable_device failed\n"); + goto out; + } nas_gpio_pci_dev = dev; status = pci_read_config_dword(dev, PMBASE, &g_pm_io_base); -- 1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html