Re: [PATCH 1/2] [media] media-device: check before unregister if mdev was registered

2015-09-10 Thread Javier Martinez Canillas
Hello Sakari, Thanks a lot for your feedback. On 09/10/2015 07:15 PM, Sakari Ailus wrote: > Javier Martinez Canillas wrote: >> Most media functions that unregister, check if the corresponding register >> function succeed before. So these functions can safely be called even if a >> registration wa

Re: [PATCH 1/2] [media] media-device: check before unregister if mdev was registered

2015-09-10 Thread Sakari Ailus
Javier Martinez Canillas wrote: > Most media functions that unregister, check if the corresponding register > function succeed before. So these functions can safely be called even if a > registration was never made or the component as already been unregistered. > > Add the same check to media_devi

[PATCH 1/2] [media] media-device: check before unregister if mdev was registered

2015-09-10 Thread Javier Martinez Canillas
Most media functions that unregister, check if the corresponding register function succeed before. So these functions can safely be called even if a registration was never made or the component as already been unregistered. Add the same check to media_device_unregister() function for consistency.