Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1320860 > unrolled thread

Re: [PATCH 25/31] media: au0828 fix to not call media_device_unregister_entity_notify()

Started byMauro Carvalho Chehab <mchehab@osg.samsung.com>
First post2016-01-28 17:50 +0100
Last post2016-01-28 21:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 25/31] media: au0828 fix to not call  media_device_unregister_entity_notify() Mauro Carvalho Chehab <mchehab@osg.samsung.com> - 2016-01-28 17:50 +0100
    Re: [PATCH 25/31] media: au0828 fix to not call  media_device_unregister_entity_notify() Shuah Khan <shuahkh@osg.samsung.com> - 2016-01-28 21:20 +0100

#1320860 — Re: [PATCH 25/31] media: au0828 fix to not call media_device_unregister_entity_notify()

FromMauro Carvalho Chehab <mchehab@osg.samsung.com>
Date2016-01-28 17:50 +0100
SubjectRe: [PATCH 25/31] media: au0828 fix to not call media_device_unregister_entity_notify()
Message-ID<qVXVE-69J-23@gated-at.bofh.it>
Em Wed,  6 Jan 2016 14:01:54 -0700
Shuah Khan <shuahkh@osg.samsung.com> escreveu:

> entity_notify handlers are removed from media_device_unregister().
> There is no need to call media_device_unregister_entity_notify()
> to do that right before calling media_device_unregister().

Please merge with the patch that added it.

> 
> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
> ---
>  drivers/media/usb/au0828/au0828-core.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/media/usb/au0828/au0828-core.c b/drivers/media/usb/au0828/au0828-core.c
> index 9497ad1..722e073 100644
> --- a/drivers/media/usb/au0828/au0828-core.c
> +++ b/drivers/media/usb/au0828/au0828-core.c
> @@ -137,8 +137,6 @@ static void au0828_unregister_media_device(struct au0828_dev *dev)
>  #ifdef CONFIG_MEDIA_CONTROLLER
>  	if (dev->media_dev &&
>  		media_devnode_is_registered(&dev->media_dev->devnode)) {
> -		media_device_unregister_entity_notify(dev->media_dev,
> -						      &dev->entity_notify);
>  		media_device_unregister(dev->media_dev);
>  		media_device_cleanup(dev->media_dev);
>  		dev->media_dev = NULL;

[toc] | [next] | [standalone]


#1321028

FromShuah Khan <shuahkh@osg.samsung.com>
Date2016-01-28 21:20 +0100
Message-ID<qW1cT-dG-25@gated-at.bofh.it>
In reply to#1320860
On 01/28/2016 09:45 AM, Mauro Carvalho Chehab wrote:
> Em Wed,  6 Jan 2016 14:01:54 -0700
> Shuah Khan <shuahkh@osg.samsung.com> escreveu:
> 
>> entity_notify handlers are removed from media_device_unregister().
>> There is no need to call media_device_unregister_entity_notify()
>> to do that right before calling media_device_unregister().
> 
> Please merge with the patch that added it.

ok

> 
>>
>> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
>> ---
>>  drivers/media/usb/au0828/au0828-core.c | 2 --
>>  1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/media/usb/au0828/au0828-core.c b/drivers/media/usb/au0828/au0828-core.c
>> index 9497ad1..722e073 100644
>> --- a/drivers/media/usb/au0828/au0828-core.c
>> +++ b/drivers/media/usb/au0828/au0828-core.c
>> @@ -137,8 +137,6 @@ static void au0828_unregister_media_device(struct au0828_dev *dev)
>>  #ifdef CONFIG_MEDIA_CONTROLLER
>>  	if (dev->media_dev &&
>>  		media_devnode_is_registered(&dev->media_dev->devnode)) {
>> -		media_device_unregister_entity_notify(dev->media_dev,
>> -						      &dev->entity_notify);
>>  		media_device_unregister(dev->media_dev);
>>  		media_device_cleanup(dev->media_dev);
>>  		dev->media_dev = NULL;


-- 
Shuah Khan
Sr. Linux Kernel Developer
Open Source Innovation Group
Samsung Research America (Silicon Valley)
shuahkh@osg.samsung.com | (970) 217-8978

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web