Skip to content

Commit

Permalink
[PARISC] Squelch pci_enable_device __must_check warning in superio
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Oct 18, 2007
1 parent 6cc4525 commit 19c4d56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/parisc/superio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 19c4d56

Please sign in to comment.