]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
wm97xx_battery: Use DEFINE_MUTEX() for work_lock
authorAxel Lin <axel.lin@gmail.com>
Mon, 28 Nov 2011 14:37:35 +0000 (22:37 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 6 Jan 2012 01:00:30 +0000 (05:00 +0400)
commitdaf22c3c4444e10a852a2f460f5cb1a43038bd53
tree6762def93163d68fcfa1d548d357f75936b45e9c
parent68597986f7db9abbe380af3db6a34b6c83cdf302
wm97xx_battery: Use DEFINE_MUTEX() for work_lock

work_lock can be initialized automatically with
DEFINE_MUTEX() rather than explicitly calling mutex_init().

This patch also removes an unused bat_lock mutex.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/wm97xx_battery.c