diff options
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) | |||
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); |