]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: axp288_charger: Fix missing mutex_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 13 Oct 2021 09:31:15 +0000 (09:31 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 13 Oct 2021 12:04:20 +0000 (14:04 +0200)
commit0603193d8fc3ab7b10c9bb9f10f75fb8ea7ef30d
tree8533ec2749d9355d8e07f88018b5bc2565e46eea
parentf5c29d130cd0006ca159fb7614dd5ce78f3e44a2
power: supply: axp288_charger: Fix missing mutex_init()

The driver allocates the mutex but not initialize it.
Use mutex_init() on it to initialize it correctly.

Fixes: 90bc9a3b91ba ("power: supply: axp288-charger: Optimize register reading method")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp288_charger.c