1 From 947b9e15ff36a9dcd517bb932303cc32f8356550 Mon Sep 17 00:00:00 2001
2 From: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
3 Date: Thu, 18 May 2017 17:59:40 +0900
4 Subject: [PATCH 14/15] Add rcar-sci hibernation code
6 Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
8 drivers/tty/serial/sh-sci.c | 8 ++++++--
9 1 file changed, 6 insertions(+), 2 deletions(-)
11 diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
12 index e3abfb7..2f0dc7a 100644
13 --- a/drivers/tty/serial/sh-sci.c
14 +++ b/drivers/tty/serial/sh-sci.c
15 @@ -2852,6 +2852,7 @@ static int sci_probe(struct platform_device *dev)
19 +#ifdef CONFIG_PM_SLEEP
20 static int sci_suspend(struct device *dev)
22 struct sci_port *sport = dev_get_drvdata(dev);
23 @@ -2871,10 +2872,13 @@ static int sci_resume(struct device *dev)
28 +#define sci_suspend NULL
29 +#define sci_resume NULL
32 static const struct dev_pm_ops sci_dev_pm_ops = {
33 - .suspend = sci_suspend,
34 - .resume = sci_resume,
35 + SET_SYSTEM_SLEEP_PM_OPS(sci_suspend, sci_resume)
38 static struct platform_driver sci_driver = {