X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Ftty%2Fserial%2Fsamsung.c;fp=drivers%2Ftty%2Fserial%2Fsamsung.c;h=b31f1c3a2c4c607268b795641bf6b9f8b1d10c0b;hb=efb8d21b2c6db3497655cc6a033ae8a9883e4063;hp=9b84654872535af781e3b02cecd9111a883f2e8a;hpb=d208a3bf77f902283894f546b6b5383202cf7882;p=pandora-kernel.git diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 9b8465487253..b31f1c3a2c4c 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1308,15 +1308,19 @@ static const struct dev_pm_ops s3c24xx_serial_pm_ops = { .suspend = s3c24xx_serial_suspend, .resume = s3c24xx_serial_resume, }; +#define SERIAL_SAMSUNG_PM_OPS (&s3c24xx_serial_pm_ops) + #else /* !CONFIG_PM_SLEEP */ -#define s3c24xx_serial_pm_ops NULL + +#define SERIAL_SAMSUNG_PM_OPS NULL #endif /* CONFIG_PM_SLEEP */ int s3c24xx_serial_init(struct platform_driver *drv, struct s3c24xx_uart_info *info) { dbg("s3c24xx_serial_init(%p,%p)\n", drv, info); - drv->driver.pm = &s3c24xx_serial_pm_ops; + + drv->driver.pm = SERIAL_SAMSUNG_PM_OPS; return platform_driver_register(drv); }