firmware loader: fix compile warning when CONFIG_PM=n
authorMing Lei <ming.lei@canonical.com>
Sat, 8 Sep 2012 09:32:30 +0000 (17:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 23:40:30 +0000 (16:40 -0700)
commitcfe016b14e1ee106e906ddfe77d598a2b288d7d6
treebd5de67d97a66269066df9509cea691e99a34605
parentef4158c5634e3819f93499d598ca617c29307ffd
firmware loader: fix compile warning when CONFIG_PM=n

This patch replaces the previous macro of CONFIG_PM with
CONFIG_PM_SLEEP becasue firmware cache is only used in
system sleep situations.

Also this patch fixes the below compile warning when
CONFIG_PM=n:

drivers/base/firmware_class.c:1147: warning: 'device_cache_fw_images'
defined but not used
drivers/base/firmware_class.c:1212: warning:
'device_uncache_fw_images_delay' defined but not used

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/firmware_class.c