2014-02-27 19:45 GMT+08:00 Jingoo Han <jg1.han@xxxxxxxxxxx>: > Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler. > > Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx> > --- Acked-by: Barry Song <Baohua.Song@xxxxxxx> > drivers/tty/serial/sirfsoc_uart.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c > index 68b0fd4..da96502 100644 > --- a/drivers/tty/serial/sirfsoc_uart.c > +++ b/drivers/tty/serial/sirfsoc_uart.c > @@ -1480,9 +1480,8 @@ static int sirfsoc_uart_resume(struct device *pdev) > } > #endif > > -static const struct dev_pm_ops sirfsoc_uart_pm_ops = { > - SET_SYSTEM_SLEEP_PM_OPS(sirfsoc_uart_suspend, sirfsoc_uart_resume) > -}; > +static SIMPLE_DEV_PM_OPS(sirfsoc_uart_pm_ops, sirfsoc_uart_suspend, > + sirfsoc_uart_resume); > > static struct platform_driver sirfsoc_uart_driver = { > .probe = sirfsoc_uart_probe, > -- > 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html