drivers: power: use 'current' instead of 'get_current()'
authorGuenter Roeck <groeck@chromium.org>
Thu, 3 Mar 2016 17:44:44 +0000 (09:44 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:57 +0000 (16:49 +0530)
commit267687882304f817e75e7f9a439ecb5b8f579a34
tree619387f45550ce097f1a415e60f808f733c67534
parentc37e85aae233519567c82a34a6201cf95f1280a6
drivers: power: use 'current' instead of 'get_current()'

get_current() to get the current thread pointer is not defined for all
architectures. This results in the following build error for several
architectures (s390, powerpc, and possibly others).

drivers/base/power/main.c: In function '__device_suspend':
drivers/base/power/main.c:1415:2: error:
implicit declaration of function 'get_current'

Use 'current' instead. Also include asm/current.h instead of depending on
an implicit include.

Fixes: ad86cc8ad632 ("drivers: power: Add watchdog timer to catch drivers which lockup during suspend."
Signed-off-by: Guenter Roeck <groeck@chromium.org>
drivers/base/power/main.c