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>
This commit is contained in:
parent
9baf3220af
commit
c08f67730a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue