diff options
author | 2007-04-25 00:20:13 -0300 | |
---|---|---|
committer | 2007-04-27 15:45:58 -0300 | |
commit | 12df2f54e5522d89b3de6df62a800a0edeb10dcc (patch) | |
tree | e183d6da86f46b569c3feb0b0d59d43c6e531229 /drivers/media | |
parent | V4L/DVB (5556): Radio-gemtek.c Replace gemtek_ioctl to use video_ioctl2 (diff) | |
download | linux-12df2f54e5522d89b3de6df62a800a0edeb10dcc.tar.gz linux-12df2f54e5522d89b3de6df62a800a0edeb10dcc.tar.bz2 linux-12df2f54e5522d89b3de6df62a800a0edeb10dcc.zip |
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')
-rw-r--r-- | drivers/media/video/cafe_ccic.c | 6 |
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) 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); |