projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92fcdc9
)
ARM i.MX27 pm: return gracefully on different socs
author
Sascha Hauer
<s.hauer@pengutronix.de>
Thu, 4 Nov 2010 22:09:18 +0000
(23:09 +0100)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 24 Nov 2010 09:09:02 +0000
(10:09 +0100)
Code called from an initcall can be maybe called for
machines it's not intended for. So check for valid
machines and return gracefully if an incompatible machine
is found.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/pm-imx27.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-imx/pm-imx27.c
b/arch/arm/mach-imx/pm-imx27.c
index afc17ce0bb54053beda95c47ea3a81c37c39fa75..6bf81ceea137f715f248e20266f34a32cdccdcd0 100644
(file)
--- a/
arch/arm/mach-imx/pm-imx27.c
+++ b/
arch/arm/mach-imx/pm-imx27.c
@@
-39,6
+39,9
@@
static struct platform_suspend_ops mx27_suspend_ops = {
static int __init mx27_pm_init(void)
{
+ if (!cpu_is_mx27())
+ return 0;
+
suspend_set_ops(&mx27_suspend_ops);
return 0;
}