Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e9a8ad5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] au0828: postpone call to au0828_unregister_media_device()



The DVB core needs to unregister the media device. So, we
can't call au0828_unregister_media_device() before calling
au0828_dvb_unregister(), otherwise the DVB MC free code
(that will be implemented on the next patch) will fail.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 04bf12c2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -178,8 +178,6 @@ static void au0828_usb_disconnect(struct usb_interface *interface)
	*/
	dev->dev_state = DEV_DISCONNECTED;

	au0828_unregister_media_device(dev);

	au0828_rc_unregister(dev);
	/* Digital TV */
	au0828_dvb_unregister(dev);
@@ -193,6 +191,10 @@ static void au0828_usb_disconnect(struct usb_interface *interface)
		au0828_analog_unregister(dev);
		v4l2_device_disconnect(&dev->v4l2_dev);
		v4l2_device_put(&dev->v4l2_dev);
		/*
		 * No need to call au0828_usb_release() if V4L2 is enabled,
		 * as this is already called via au0828_usb_v4l2_release()
		 */
		return;
	}
#endif