]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: atomisp: mt9m114: Add missing mutex_init() call
authorHans de Goede <hdegoede@redhat.com>
Sun, 13 Oct 2024 15:40:55 +0000 (17:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 7 Nov 2024 14:16:06 +0000 (15:16 +0100)
commitf6d364dbad0407ca1bb5b476bc50b830dae0a603
treeb6e8115820f91dd0102040377388c2de111ce835
parent1059f9e6cc16f1129b8d28518b05782cfffd4c94
media: atomisp: mt9m114: Add missing mutex_init() call

The input_lock was not being initialized, fix this.

Also switch to devm_kzalloc() for the main driver data struct, so that
devm_mutex_init() can be used for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20241013154056.12532-4-hdegoede@redhat.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c