aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2007-10-18 03:04:03 -0400
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-18 04:07:44 -0400
commit19c4d5664aaf9419dfe6b24990a93305fded6403 (patch)
tree00ea02cbc0a31d48cb955a4e60b55b4d3971a782
parent6cc4525d29e22ab831387b6fac371e0118693a25 (diff)
[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>
-rw-r--r--drivers/parisc/superio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/parisc/superio.c b/drivers/parisc/superio.c
index 38cdf9fa36a7..1e8d2d17f04c 100644
--- a/drivers/parisc/superio.c
+++ b/drivers/parisc/superio.c
@@ -155,6 +155,7 @@ superio_init(struct pci_dev *pcidev)
155 struct superio_device *sio = &sio_dev; 155 struct superio_device *sio = &sio_dev;
156 struct pci_dev *pdev = sio->lio_pdev; 156 struct pci_dev *pdev = sio->lio_pdev;
157 u16 word; 157 u16 word;
158 int ret;
158 159
159 if (sio->suckyio_irq_enabled) 160 if (sio->suckyio_irq_enabled)
160 return; 161 return;
@@ -200,7 +201,8 @@ superio_init(struct pci_dev *pcidev)
200 pci_write_config_word (pdev, PCI_COMMAND, word); 201 pci_write_config_word (pdev, PCI_COMMAND, word);
201 202
202 pci_set_master (pdev); 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 * Next project is programming the onboard interrupt controllers. 208 * Next project is programming the onboard interrupt controllers.