USB: serial: option: reimplement interface masking
[linux/fpc-iii.git] / arch / arm / mach-imx / pm-imx25.c
blob8bba9fcd96f66822b2f9de54ff458381395656bd
1 /*
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.
7 */
9 #include <linux/kernel.h>
10 #include <linux/suspend.h>
11 #include <linux/io.h>
13 static int imx25_suspend_enter(suspend_state_t state)
15 if (!IS_ENABLED(CONFIG_PM))
16 return 0;
18 switch (state) {
19 case PM_SUSPEND_MEM:
20 cpu_do_idle();
21 break;
22 default:
23 return -EINVAL;
26 return 0;
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);