mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: Javier Martinez Canillas <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
This commit is contained in:
parent
7f131cf3ed
commit
09a46db05b
1 changed files with 6 additions and 2 deletions
|
|
@ -344,10 +344,14 @@ static struct pci_dev *nas_gpio_pci_dev;
|
|||
static int __devinit ich7_lpc_probe(struct pci_dev *dev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
int status = 0;
|
||||
int status;
|
||||
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;
|
||||
status = pci_read_config_dword(dev, PMBASE, &g_pm_io_base);
|
||||
|
|
|
|||
Loading…
Reference in a new issue