st-asc.c (30596ec32e2cd141d73ee8701386887def9e98c0) | st-asc.c (a406c4b8097473a1294ab056e65df801382b8f28) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * st-asc.c: ST Asynchronous serial controller (ASC) driver 4 * 5 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited 6 */ 7 8#if defined(CONFIG_SERIAL_ST_ASC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) --- 828 unchanged lines hidden (view full) --- 837 struct uart_port *port = platform_get_drvdata(pdev); 838 839 return uart_remove_one_port(&asc_uart_driver, port); 840} 841 842#ifdef CONFIG_PM_SLEEP 843static int asc_serial_suspend(struct device *dev) 844{ | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * st-asc.c: ST Asynchronous serial controller (ASC) driver 4 * 5 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited 6 */ 7 8#if defined(CONFIG_SERIAL_ST_ASC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) --- 828 unchanged lines hidden (view full) --- 837 struct uart_port *port = platform_get_drvdata(pdev); 838 839 return uart_remove_one_port(&asc_uart_driver, port); 840} 841 842#ifdef CONFIG_PM_SLEEP 843static int asc_serial_suspend(struct device *dev) 844{ |
845 struct platform_device *pdev = to_platform_device(dev); 846 struct uart_port *port = platform_get_drvdata(pdev); | 845 struct uart_port *port = dev_get_drvdata(dev); |
847 848 return uart_suspend_port(&asc_uart_driver, port); 849} 850 851static int asc_serial_resume(struct device *dev) 852{ | 846 847 return uart_suspend_port(&asc_uart_driver, port); 848} 849 850static int asc_serial_resume(struct device *dev) 851{ |
853 struct platform_device *pdev = to_platform_device(dev); 854 struct uart_port *port = platform_get_drvdata(pdev); | 852 struct uart_port *port = dev_get_drvdata(dev); |
855 856 return uart_resume_port(&asc_uart_driver, port); 857} 858 859#endif /* CONFIG_PM_SLEEP */ 860 861/*----------------------------------------------------------------------*/ 862 --- 151 unchanged lines hidden --- | 853 854 return uart_resume_port(&asc_uart_driver, port); 855} 856 857#endif /* CONFIG_PM_SLEEP */ 858 859/*----------------------------------------------------------------------*/ 860 --- 151 unchanged lines hidden --- |