RE: [PATCH] media: i2c: s5c73m3: make sure we destroy the mutex

2015-03-03 Thread Kamil Debski
From: Hans Verkuil [mailto:hverk...@xs4all.nl] Sent: Tuesday, March 03, 2015 10:09 AM > > On 03/02/2015 04:00 PM, Lad Prabhakar wrote: > > From: "Lad, Prabhakar" > > > > Make sure to call mutex_destroy() in case of probe failure or module > > unload. > > It's not actually necessary to destroy a

Re: [PATCH] media: i2c: s5c73m3: make sure we destroy the mutex

2015-03-03 Thread Hans Verkuil
On 03/02/2015 04:00 PM, Lad Prabhakar wrote: > From: "Lad, Prabhakar" > > Make sure to call mutex_destroy() in case of probe failure or module > unload. It's not actually necessary to destroy a mutex. Most drivers never do this. It only helps a bit in debugging. I'll delegate this patch to Kami