Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19c4d566 authored by Kyle McMartin's avatar Kyle McMartin Committed by Kyle McMartin
Browse files

[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: default avatarKyle McMartin <kyle@mcmartin.ca>
parent 6cc4525d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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.