From: Ming Lei Date: Fri, 17 Aug 2012 14:06:58 +0000 (+0800) Subject: firmware loader: fix compile failure if !PM X-Git-Tag: v3.7-rc1~174^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c08f67730aba342b03f070209acc2990d3decf3c;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 Signed-off-by: Ming Lei Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 5bd2100a..4c8d8ef 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, #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)