]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: quickstart: Use devm_mutex_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Sep 2025 13:32:26 +0000 (15:32 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 8 Sep 2025 10:13:41 +0000 (13:13 +0300)
commitc4f8b11bacd562f38c85f4f81a0a4426b267df70
tree0d317c720530a59440bc190ba08d448294f91203
parentb5a5a16e37c004052e9181de5cff0638d44a4b9b
platform/x86: quickstart: Use devm_mutex_init()

Use devm_mutex_init() instead of hand-writing it.

This saves some LoC, improves readability and saves some space in the
generated .o file.

Before:
======
   text    data     bss     dec     hex filename
   7607    2616      64   10287    282f drivers/platform/x86/quickstart.o

After:
=====
   text    data     bss     dec     hex filename
   7301    2544      64    9909    26b5 drivers/platform/x86/quickstart.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/530b930c981c436c172c0308b348d4ae4ef72800.1757251867.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/quickstart.c