2 * Copyright 2016 NXP Semiconductors
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 #include <linux/kernel.h>
10 #include <linux/suspend.h>
13 static int imx25_suspend_enter(suspend_state_t state)
15 if (!IS_ENABLED(CONFIG_PM))
29 static const struct platform_suspend_ops imx25_suspend_ops = {
30 .enter = imx25_suspend_enter,
31 .valid = suspend_valid_only_mem,
34 void __init imx25_pm_init(void)
36 suspend_set_ops(&imx25_suspend_ops);