Commit 09a46db0 authored by Dave Hansen's avatar Dave Hansen Committed by Richard Purdie

leds-ss4200: Check pci_enable_device return

pci_enable_result is defined using the __must_check macro but
leds-ss4200 is not checking the return value.
Signed-off-by: default avatarJavier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: default avatarDave Hansen <dave@sr71.net>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 7f131cf3
...@@ -344,10 +344,14 @@ static struct pci_dev *nas_gpio_pci_dev; ...@@ -344,10 +344,14 @@ static struct pci_dev *nas_gpio_pci_dev;
static int __devinit ich7_lpc_probe(struct pci_dev *dev, static int __devinit ich7_lpc_probe(struct pci_dev *dev,
const struct pci_device_id *id) const struct pci_device_id *id)
{ {
int status = 0; int status;
u32 gc = 0; u32 gc = 0;
pci_enable_device(dev); status = pci_enable_device(dev);
if (status) {
dev_err(&dev->dev, "pci_enable_device failed\n");
return;
}
nas_gpio_pci_dev = dev; nas_gpio_pci_dev = dev;
status = pci_read_config_dword(dev, PMBASE, &g_pm_io_base); status = pci_read_config_dword(dev, PMBASE, &g_pm_io_base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment