aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/of_serial.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index 088907053ea1..12c95cc64c00 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -247,32 +247,6 @@ static int of_platform_serial_remove(struct platform_device *ofdev)
247 return 0; 247 return 0;
248} 248}
249 249
250#ifdef CONFIG_PM_SLEEP
251static int of_serial_suspend(struct device *dev)
252{
253 struct of_serial_info *info = dev_get_drvdata(dev);
254
255 serial8250_suspend_port(info->line);
256 if (info->clk)
257 clk_disable_unprepare(info->clk);
258
259 return 0;
260}
261
262static int of_serial_resume(struct device *dev)
263{
264 struct of_serial_info *info = dev_get_drvdata(dev);
265
266 if (info->clk)
267 clk_prepare_enable(info->clk);
268
269 serial8250_resume_port(info->line);
270
271 return 0;
272}
273#endif
274static SIMPLE_DEV_PM_OPS(of_serial_pm_ops, of_serial_suspend, of_serial_resume);
275
276/* 250/*
277 * A few common types, add more as needed. 251 * A few common types, add more as needed.
278 */ 252 */
@@ -305,7 +279,6 @@ static struct platform_driver of_platform_serial_driver = {
305 .name = "of_serial", 279 .name = "of_serial",
306 .owner = THIS_MODULE, 280 .owner = THIS_MODULE,
307 .of_match_table = of_platform_serial_table, 281 .of_match_table = of_platform_serial_table,
308 .pm = &of_serial_pm_ops,
309 }, 282 },
310 .probe = of_platform_serial_probe, 283 .probe = of_platform_serial_probe,
311 .remove = of_platform_serial_remove, 284 .remove = of_platform_serial_remove,