Message ID | 20191001084908.2003-5-johan@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 30045f2174aab7fb4db7a9cf902d0aa6c75856a7 |
Headers | show |
Series | USB: fix runtime PM after driver unbind | expand |
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c index be8041e3e6b8..b0cfa4c1f8cc 100644 --- a/drivers/media/usb/stkwebcam/stk-webcam.c +++ b/drivers/media/usb/stkwebcam/stk-webcam.c @@ -643,8 +643,7 @@ static int v4l_stk_release(struct file *fp) dev->owner = NULL; } - if (is_present(dev)) - usb_autopm_put_interface(dev->interface); + usb_autopm_put_interface(dev->interface); mutex_unlock(&dev->lock); return v4l2_fh_release(fp); }