diff options
| -rw-r--r-- | drivers/tty/serial/samsung.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index afc629423152..6edafb5ace18 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c | |||
| @@ -1225,15 +1225,19 @@ static const struct dev_pm_ops s3c24xx_serial_pm_ops = { | |||
| 1225 | .suspend = s3c24xx_serial_suspend, | 1225 | .suspend = s3c24xx_serial_suspend, |
| 1226 | .resume = s3c24xx_serial_resume, | 1226 | .resume = s3c24xx_serial_resume, |
| 1227 | }; | 1227 | }; |
| 1228 | #define SERIAL_SAMSUNG_PM_OPS (&s3c24xx_serial_pm_ops) | ||
| 1229 | |||
| 1228 | #else /* !CONFIG_PM_SLEEP */ | 1230 | #else /* !CONFIG_PM_SLEEP */ |
| 1229 | #define s3c24xx_serial_pm_ops NULL | 1231 | |
| 1232 | #define SERIAL_SAMSUNG_PM_OPS NULL | ||
| 1230 | #endif /* CONFIG_PM_SLEEP */ | 1233 | #endif /* CONFIG_PM_SLEEP */ |
| 1231 | 1234 | ||
| 1232 | int s3c24xx_serial_init(struct platform_driver *drv, | 1235 | int s3c24xx_serial_init(struct platform_driver *drv, |
| 1233 | struct s3c24xx_uart_info *info) | 1236 | struct s3c24xx_uart_info *info) |
| 1234 | { | 1237 | { |
| 1235 | dbg("s3c24xx_serial_init(%p,%p)\n", drv, info); | 1238 | dbg("s3c24xx_serial_init(%p,%p)\n", drv, info); |
| 1236 | drv->driver.pm = &s3c24xx_serial_pm_ops; | 1239 | |
| 1240 | drv->driver.pm = SERIAL_SAMSUNG_PM_OPS; | ||
| 1237 | 1241 | ||
| 1238 | return platform_driver_register(drv); | 1242 | return platform_driver_register(drv); |
| 1239 | } | 1243 | } |
