mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 23:26:41 +07:00
[POWERPC] Fix warning in powermac feature.c
This fixes a warning due to unused return from pci_enable_device() in powermac feature.c core99_ata100_enable() function. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
84532c9120
commit
e71c5c38ed
@ -810,6 +810,7 @@ core99_ata100_enable(struct device_node *node, long value)
|
||||
unsigned long flags;
|
||||
struct pci_dev *pdev = NULL;
|
||||
u8 pbus, pid;
|
||||
int rc;
|
||||
|
||||
if (uninorth_rev < 0x24)
|
||||
return -ENODEV;
|
||||
@ -828,7 +829,9 @@ core99_ata100_enable(struct device_node *node, long value)
|
||||
pdev = pci_find_slot(pbus, pid);
|
||||
if (pdev == NULL)
|
||||
return 0;
|
||||
pci_enable_device(pdev);
|
||||
rc = pci_enable_device(pdev);
|
||||
if (rc)
|
||||
return rc;
|
||||
pci_set_master(pdev);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user