Skip to content

Commit

Permalink
Revert "serial: of-serial: add PM suspend/resume support"
Browse files Browse the repository at this point in the history
This reverts commit 2dea53b.

Turns out to be broken :(

Cc: Jingchang Lu <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Nov 26, 2014
1 parent 962b0a8 commit 261119f
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions drivers/tty/serial/of_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,32 +247,6 @@ static int of_platform_serial_remove(struct platform_device *ofdev)
return 0;
}

#ifdef CONFIG_PM_SLEEP
static int of_serial_suspend(struct device *dev)
{
struct of_serial_info *info = dev_get_drvdata(dev);

serial8250_suspend_port(info->line);
if (info->clk)
clk_disable_unprepare(info->clk);

return 0;
}

static int of_serial_resume(struct device *dev)
{
struct of_serial_info *info = dev_get_drvdata(dev);

if (info->clk)
clk_prepare_enable(info->clk);

serial8250_resume_port(info->line);

return 0;
}
#endif
static SIMPLE_DEV_PM_OPS(of_serial_pm_ops, of_serial_suspend, of_serial_resume);

/*
* A few common types, add more as needed.
*/
Expand Down Expand Up @@ -305,7 +279,6 @@ static struct platform_driver of_platform_serial_driver = {
.name = "of_serial",
.owner = THIS_MODULE,
.of_match_table = of_platform_serial_table,
.pm = &of_serial_pm_ops,
},
.probe = of_platform_serial_probe,
.remove = of_platform_serial_remove,
Expand Down

0 comments on commit 261119f

Please sign in to comment.