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

Commit 12df2f54 authored by Trent Piepho's avatar Trent Piepho Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (5557): Cafe_ccic: check return value of pci_enable_device



Remove warnings

Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
Acked-by: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent e9bb9c64
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2216,7 +2216,11 @@ static int cafe_pci_resume(struct pci_dev *pdev)
	ret = pci_restore_state(pdev);
	if (ret)
		return ret;
	pci_enable_device(pdev);
	ret = pci_enable_device(pdev);
	if (ret) {
		cam_warn(cam, "Unable to re-enable device on resume!\n");
		return ret;
	}
	cafe_ctlr_init(cam);
	cafe_ctlr_power_up(cam);
	set_bit(CF_CONFIG_NEEDED, &cam->flags);