]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
firmware loader: fix compile failure if !PM
authorMing Lei <ming.lei@canonical.com>
Fri, 17 Aug 2012 14:06:58 +0000 (22:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 14:36:11 +0000 (07:36 -0700)
'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>
drivers/base/firmware_class.c

index 5bd2100a4dcf6d4b1a41aeef16aee3ab6bc62c64..4c8d8efecdf41709d85bfc6f6e56fc0db9c8538d 100644 (file)
@@ -1242,7 +1242,9 @@ static int fw_pm_notify(struct notifier_block *notify_block,
 #else
 static int fw_pm_notify(struct notifier_block *notify_block,
                        unsigned long mode, void *unused)
-{}
+{
+       return 0;
+}
 #endif
 
 static void __init fw_cache_init(void)