PM / Sleep: Initialize wakeup source locks in wakeup_source_add()
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 10 Feb 2012 23:00:11 +0000 (00:00 +0100)
committerArve Hjønnevåg <arve@android.com>
Sat, 17 Mar 2012 01:10:25 +0000 (18:10 -0700)
commit3c63797031913f63fe31671d6de47014f00af415
tree6686fcafaa60fa96c60acc622c1fc063d01b453b
parent10c41e43e1703e11ebbf4707af3174850163024b
PM / Sleep: Initialize wakeup source locks in wakeup_source_add()

Initialize wakeup source locks in wakeup_source_add() instead of
wakeup_source_create(), because otherwise the locks of the wakeup
sources that haven't been allocated with wakeup_source_create()
aren't initialized and handled properly.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/wakeup.c