diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-25 00:20:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-25 00:20:13 -0300 |
commit | 87e67f18a546d8461379f9f4df05102910f78c9a (patch) | |
tree | c85c919d60db7cd820df0d521fd5242d973c8d02 /linux/drivers/media/video/cafe_ccic.c | |
parent | 61590e9a60d686d34c7a38c3c014e00f208342cb (diff) | |
download | mediapointer-dvb-s2-87e67f18a546d8461379f9f4df05102910f78c9a.tar.gz mediapointer-dvb-s2-87e67f18a546d8461379f9f4df05102910f78c9a.tar.bz2 |
cafe_ccic: check return value of pci_enable_device
From: Trent Piepho <xyzzy@speakeasy.org>
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 'linux/drivers/media/video/cafe_ccic.c')
-rw-r--r-- | linux/drivers/media/video/cafe_ccic.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cafe_ccic.c b/linux/drivers/media/video/cafe_ccic.c index ea69590a1..041d87092 100644 --- a/linux/drivers/media/video/cafe_ccic.c +++ b/linux/drivers/media/video/cafe_ccic.c @@ -2222,7 +2222,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); |