Commit 19c4d5664aaf9419dfe6b24990a93305fded6403

Authored by Kyle McMartin
Committed by Kyle McMartin
1 parent 6cc4525d29

[PARISC] Squelch pci_enable_device __must_check warning in superio

If we have a SuckyIO, and pci_enable_device fails, we'll be in a world of
hurt anyways, so we might as well BUG_ON.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

drivers/parisc/superio.c
... ... @@ -155,6 +155,7 @@
155 155 struct superio_device *sio = &sio_dev;
156 156 struct pci_dev *pdev = sio->lio_pdev;
157 157 u16 word;
  158 + int ret;
158 159  
159 160 if (sio->suckyio_irq_enabled)
160 161 return;
... ... @@ -200,7 +201,8 @@
200 201 pci_write_config_word (pdev, PCI_COMMAND, word);
201 202  
202 203 pci_set_master (pdev);
203   - pci_enable_device(pdev);
  204 + ret = pci_enable_device(pdev);
  205 + BUG_ON(ret < 0); /* not too much we can do about this... */
204 206  
205 207 /*
206 208 * Next project is programming the onboard interrupt controllers.