pm2301_charger: Return error if create_singlethread_workqueue fails
commitc509a62c9469e2787bcacc7aba454d555732b0b6
authorAxel Lin <axel.lin@ingics.com>
Thu, 16 May 2013 13:17:04 +0000 (16 21:17 +0800)
committerAnton Vorontsov <anton@enomsg.org>
Fri, 7 Jun 2013 00:25:48 +0000 (6 17:25 -0700)
tree73972ab9429753156a59a4618f4a7022a96dafb4
parentdf311333a8c13f3ffe2537a4ff507887208cb863
pm2301_charger: Return error if create_singlethread_workqueue fails

Return error instead of 0 if create_singlethread_workqueue call fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/pm2301_charger.c