Commit c08f6773 authored by Ming Lei's avatar Ming Lei Committed by Greg Kroah-Hartman
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9baf3220
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)