summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/superio.c
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2007-10-18 09:04:03 +0200
committerKyle McMartin <kyle@shortfin.cabal.ca>2007-10-18 10:07:44 +0200
commit19c4d5664aaf9419dfe6b24990a93305fded6403 (patch)
tree00ea02cbc0a31d48cb955a4e60b55b4d3971a782 /drivers/parisc/superio.c
parent[PARISC] Kill off broken irqstack code (diff)
downloadlinux-19c4d5664aaf9419dfe6b24990a93305fded6403.tar.xz
linux-19c4d5664aaf9419dfe6b24990a93305fded6403.zip
[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>
Diffstat (limited to 'drivers/parisc/superio.c')
-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)
struct superio_device *sio = &sio_dev;
struct pci_dev *pdev = sio->lio_pdev;
u16 word;
+ int ret;
if (sio->suckyio_irq_enabled)
return;
@@ -200,7 +201,8 @@ superio_init(struct pci_dev *pcidev)
pci_write_config_word (pdev, PCI_COMMAND, word);
pci_set_master (pdev);
- pci_enable_device(pdev);
+ ret = pci_enable_device(pdev);
+ BUG_ON(ret < 0); /* not too much we can do about this... */
/*
* Next project is programming the onboard interrupt controllers.