summaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood/pm.h
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2014-02-22 19:14:43 (GMT)
committerJason Cooper <jason@lakedaemon.net>2014-02-22 20:38:22 (GMT)
commitc3b6144acb6b684bf1e9ae413e2f09825e314c61 (patch)
tree183604b6bb1aeeb1fd24e5050144bff20c76684a /arch/arm/mach-kirkwood/pm.h
parentb92f10be479b3b63e753968a0c6cb3f605ad7142 (diff)
downloadlinux-c3b6144acb6b684bf1e9ae413e2f09825e314c61.tar.xz
ARM: kirkwood: Give pm.c its own header file.
The pm code needs to be separated from common.h in order to split DT and non-DT systems apart. Move the declarations into a header file of its own and include it where needed. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> (on kirkwood) Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/pm.h')
-rw-r--r--arch/arm/mach-kirkwood/pm.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/pm.h b/arch/arm/mach-kirkwood/pm.h
new file mode 100644
index 0000000..21e7530
--- /dev/null
+++ b/arch/arm/mach-kirkwood/pm.h
@@ -0,0 +1,26 @@
+/*
+ * Power Management driver for Marvell Kirkwood SoCs
+ *
+ * Copyright (C) 2013 Ezequiel Garcia <ezequiel@free-electrons.com>
+ * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License,
+ * version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __ARCH_KIRKWOOD_PM_H
+#define __ARCH_KIRKWOOD_PM_H
+
+#ifdef CONFIG_PM
+void kirkwood_pm_init(void);
+#else
+static inline void kirkwood_pm_init(void) {};
+#endif
+
+#endif