diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-08 12:06:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-09 21:31:11 +0100 |
commit | 9b6e9902708d30bda69e331249946371a2710553 (patch) | |
tree | 43544948921fbc5aa8257c2a5a7dd84fd9631f1d /src/device.h | |
parent | main: cleaner error teardown (diff) | |
download | wireguard-monolithic-historical-9b6e9902708d30bda69e331249946371a2710553.tar.xz wireguard-monolithic-historical-9b6e9902708d30bda69e331249946371a2710553.zip |
device: make suspend code conditional on CONFIG_PM_SLEEP
This isn't actually neccessary, since there are no-op stubs for these
functions, but the MIPS people don't want any unneccessary bloat.
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device.h b/src/device.h index f716242..cd62e9b 100644 --- a/src/device.h +++ b/src/device.h @@ -33,7 +33,9 @@ struct wireguard_device { struct list_head peer_list; struct mutex device_update_lock; struct mutex socket_update_lock; +#ifdef CONFIG_PM_SLEEP struct notifier_block clear_peers_on_suspend; +#endif }; int device_init(void); |