aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cafe_ccic.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-04-24 23:20:13 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:45:58 -0400
commit12df2f54e5522d89b3de6df62a800a0edeb10dcc (patch)
treee183d6da86f46b569c3feb0b0d59d43c6e531229 /drivers/media/video/cafe_ccic.c
parente9bb9c643924aee08f2a6b353174361ab567e436 (diff)
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>
Diffstat (limited to 'drivers/media/video/cafe_ccic.c')
-rw-r--r--drivers/media/video/cafe_ccic.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/cafe_ccic.c b/drivers/media/video/cafe_ccic.c
index 59fd760a52ac..96254dbaf625 100644
--- 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)
2216 ret = pci_restore_state(pdev); 2216 ret = pci_restore_state(pdev);
2217 if (ret) 2217 if (ret)
2218 return ret; 2218 return ret;
2219 pci_enable_device(pdev); 2219 ret = pci_enable_device(pdev);
2220 if (ret) {
2221 cam_warn(cam, "Unable to re-enable device on resume!\n");
2222 return ret;
2223 }
2220 cafe_ctlr_init(cam); 2224 cafe_ctlr_init(cam);
2221 cafe_ctlr_power_up(cam); 2225 cafe_ctlr_power_up(cam);
2222 set_bit(CF_CONFIG_NEEDED, &cam->flags); 2226 set_bit(CF_CONFIG_NEEDED, &cam->flags);