Skip to content

Commit

Permalink
omap-serial :Make the suspend/resume functions depend on CONFIG_PM_SL…
Browse files Browse the repository at this point in the history
…EEP.

    The macro SET_SYSTEM_SLEEP_PM_OPS  depends CONFIG_PM_SLEEP. The patch
    defines the suspend and resume functions for CONFIG_PM_SLEEP instead of
    CONFIG_SUSPEND.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Shubhrajyoti D authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent 0eee50a commit 3bc4f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ static struct uart_driver serial_omap_reg = {
.cons = OMAP_CONSOLE,
};

#ifdef CONFIG_SUSPEND
#ifdef CONFIG_PM_SLEEP
static int serial_omap_suspend(struct device *dev)
{
struct uart_omap_port *up = dev_get_drvdata(dev);
Expand Down

0 comments on commit 3bc4f0d

Please sign in to comment.