Skip to content

Commit

Permalink
ARM: mxs: stub out mxs_pm_init for !CONFIG_PM
Browse files Browse the repository at this point in the history
When building a kernel without CONFIG_PM, we get a link
error from referencing mxs_pm_init in the machine
descriptor. This defines a macro to NULL for that case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Arnd Bergmann committed Jun 24, 2013
1 parent 6eed846 commit 7a9caf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-mxs/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#ifndef __ARCH_MXS_PM_H
#define __ARCH_MXS_PM_H

#ifdef CONFIG_PM
void mxs_pm_init(void);
#else
#define mxs_pm_init NULL
#endif

#endif

0 comments on commit 7a9caf5

Please sign in to comment.