diff options
author | Ming Lei <ming.lei@canonical.com> | 2012-08-17 10:06:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-17 10:36:11 -0400 |
commit | c08f67730aba342b03f070209acc2990d3decf3c (patch) | |
tree | d03444829cf235bbbabfc7663befc712e2bd13ef /drivers/base/firmware_class.c | |
parent | 9baf3220afe870b2526397919857b271c3affda5 (diff) |
firmware loader: fix compile failure if !PM
'return 0' should be added to fw_pm_notify if !PM because
return value of the funcion is defined as 'int'.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/firmware_class.c')
-rw-r--r-- | drivers/base/firmware_class.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 5bd2100a4dcf..4c8d8efecdf4 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c | |||
@@ -1242,7 +1242,9 @@ static int fw_pm_notify(struct notifier_block *notify_block, | |||
1242 | #else | 1242 | #else |
1243 | static int fw_pm_notify(struct notifier_block *notify_block, | 1243 | static int fw_pm_notify(struct notifier_block *notify_block, |
1244 | unsigned long mode, void *unused) | 1244 | unsigned long mode, void *unused) |
1245 | {} | 1245 | { |
1246 | return 0; | ||
1247 | } | ||
1246 | #endif | 1248 | #endif |
1247 | 1249 | ||
1248 | static void __init fw_cache_init(void) | 1250 | static void __init fw_cache_init(void) |