Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=19c4d5664aaf9419dfe6b24990a93305fded6403 Commit: 19c4d5664aaf9419dfe6b24990a93305fded6403 Parent: 6cc4525d29e22ab831387b6fac371e0118693a25 Author: Kyle McMartin <[EMAIL PROTECTED]> AuthorDate: Thu Oct 18 00:04:03 2007 -0700 Committer: Kyle McMartin <[EMAIL PROTECTED]> CommitDate: Thu Oct 18 01:07:44 2007 -0700
[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 <[EMAIL PROTECTED]> --- drivers/parisc/superio.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/parisc/superio.c b/drivers/parisc/superio.c index 38cdf9f..1e8d2d1 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. - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html