[media] media: au0828 fix to clear enable/disable/change source handlers
authorShuah Khan <shuahkh@osg.samsung.com>
Sun, 13 Mar 2016 03:57:40 +0000 (00:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 31 Mar 2016 17:50:39 +0000 (14:50 -0300)
commitffa8576a5380e098c4f066f50c5ec812b9abef43
treed78a6bc42c703c6eb4d84618981f7f9534d83d23
parent0fed3fcef48aff793f00aca44f366ff77fa95a01
[media] media: au0828 fix to clear enable/disable/change source handlers

Fix to clear enable/disable/change source handlers in the media device
when media device is unregistered in au0828_unregister_media_device().
When au0828 module is removed, snd-usb-audio shouldn't call the handlers.
Clearing will ensure snd-usb-audio won't call them once au0828 is removed.

[mchehab@osg.samsung.com: fix a compilation breakage]
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/au0828/au0828-core.c