Skip to content

Commit

Permalink
firmware loader: fix compile failure if !PM
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Aug 17, 2012
1 parent 9baf322 commit c08f677
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/base/firmware_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c08f677

Please sign in to comment.