projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9bb9c6
)
V4L/DVB (5557): Cafe_ccic: check return value of pci_enable_device
author
Trent Piepho
<xyzzy@speakeasy.org>
Wed, 25 Apr 2007 03:20:13 +0000
(
00:20
-0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Fri, 27 Apr 2007 18:45:58 +0000
(15:45 -0300)
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>
drivers/media/video/cafe_ccic.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/cafe_ccic.c
b/drivers/media/video/cafe_ccic.c
index 59fd760a52ace8c7e361c74b52fedb667a80d0f5..96254dbaf6252f78de803f0b8e234ccc96830251 100644
(file)
--- a/
drivers/media/video/cafe_ccic.c
+++ b/
drivers/media/video/cafe_ccic.c
@@
-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);