mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
V4L/DVB (5557): Cafe_ccic: check return value of pci_enable_device
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>
This commit is contained in:
parent
e9bb9c6439
commit
12df2f54e5
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue