diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-04-30 01:19:21 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 03:28:28 +0200 |
commit | 38a6276e2b56921a407e718079aee79919873d72 (patch) | |
tree | 105c46143f650432da4851e8aefeeb3ad54cd3bc /include/net | |
parent | drivers/rtc/rtc-ds1286.c: fix compiler warning while doing make W=1 (diff) | |
download | linux-38a6276e2b56921a407e718079aee79919873d72.tar.xz linux-38a6276e2b56921a407e718079aee79919873d72.zip |
drivers/rtc/rtc-tegra.c: protect suspend/resume callbacks with CONFIG_PM_SLEEP
CONFIG_PM doesn't actually enable any of the PM callbacks, it only allows
to enable CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME. This means if CONFIG_PM
is used to protect system sleep callbacks then it may end up unreferenced
if only runtime PM is enabled. Hence protecting sleep callbacks with
CONFIG_PM_SLEEP.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions