All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] usb: misc: use DEFINE_MUTEX (and mutex_init() had been too late)
@ 2020-12-23 14:10 Zheng Yongjun
  2020-12-23 14:17 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Yongjun @ 2020-12-23 14:10 UTC (permalink / raw)
  To: linux-usb, linux-kernel; +Cc: Zheng Yongjun

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
 drivers/usb/misc/ftdi-elan.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c
index 8a3d9c0c8d8b..bfb538f2cac1 100644
--- a/drivers/usb/misc/ftdi-elan.c
+++ b/drivers/usb/misc/ftdi-elan.c
@@ -61,7 +61,7 @@ extern struct platform_driver u132_platform_driver;
  * ftdi_module_lock exists to protect access to global variables
  *
  */
-static struct mutex ftdi_module_lock;
+static DEFINE_MUTEX(ftdi_module_lock);
 static int ftdi_instances = 0;
 static struct list_head ftdi_static_list;
 /*
@@ -2761,7 +2761,6 @@ static int __init ftdi_elan_init(void)
 {
 	int result;
 	pr_info("driver %s\n", ftdi_elan_driver.name);
-	mutex_init(&ftdi_module_lock);
 	INIT_LIST_HEAD(&ftdi_static_list);
 	result = usb_register(&ftdi_elan_driver);
 	if (result) {
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] usb: misc: use DEFINE_MUTEX (and mutex_init() had been too late)
  2020-12-23 14:10 [PATCH -next] usb: misc: use DEFINE_MUTEX (and mutex_init() had been too late) Zheng Yongjun
@ 2020-12-23 14:17 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2020-12-23 14:17 UTC (permalink / raw)
  To: Zheng Yongjun; +Cc: linux-usb, linux-kernel

On Wed, Dec 23, 2020 at 10:10:44PM +0800, Zheng Yongjun wrote:
> Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
> ---
>  drivers/usb/misc/ftdi-elan.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

I can not take patches without any changelog text, sorry.

And try including the driver name in the subject line please.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-23 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 14:10 [PATCH -next] usb: misc: use DEFINE_MUTEX (and mutex_init() had been too late) Zheng Yongjun
2020-12-23 14:17 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.