Commit e1b5d103 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: ad86cc8a ("drivers: power: Add watchdog timer to catch drivers which lockup during suspend."
Signed-off-by: default avatarGuenter Roeck <groeck@chromium.org>
parent 077be8a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment