Skip to content

Commit

Permalink
V4L/DVB (5557): Cafe_ccic: check return value of pci_enable_device
Browse files Browse the repository at this point in the history
Remove warnings

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Apr 27, 2007
1 parent e9bb9c6 commit 12df2f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/video/cafe_ccic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 12df2f5

Please sign in to comment.