drivers: power: use 'current' instead of 'get_current()'
authorGuenter Roeck <groeck@chromium.org>
Thu, 3 Mar 2016 17:44:44 +0000 (09:44 -0800)
committerGuenter Roeck <groeck@chromium.org>
Thu, 3 Mar 2016 17:44:44 +0000 (09:44 -0800)
commite1b5d103894d097fb630aebc3c1fdaf257f7c9bb
treee8d089931d0655b276bb3a96fbbfcc202d74b6f4
parent077be8a752875772589c70299a291070807c8046
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