aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2013-05-13 13:46:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-20 15:04:38 -0400
commite424259e2e27290c457f65161ae62f7c89215b88 (patch)
tree13a34860c2cb8cd6b9a5c37dac9780ea7a95bb2d /drivers/tty
parentf1f836e4209eb904008efeb5faa69839b24fab5b (diff)
tty: xuartps: Remove suspend/resume functions
Currently Zynq does not support suspend/resume. The driver callbacks are never used or tested, broken and using the old PM interface. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Cc: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/xilinx_uartps.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c
index 4e5c77834c50..b5f655d10098 100644
--- a/drivers/tty/serial/xilinx_uartps.c
+++ b/drivers/tty/serial/xilinx_uartps.c
@@ -1006,34 +1006,6 @@ static int xuartps_remove(struct platform_device *pdev)
1006 return rc; 1006 return rc;
1007} 1007}
1008 1008
1009/**
1010 * xuartps_suspend - suspend event
1011 * @pdev: Pointer to the platform device structure
1012 * @state: State of the device
1013 *
1014 * Returns 0
1015 **/
1016static int xuartps_suspend(struct platform_device *pdev, pm_message_t state)
1017{
1018 /* Call the API provided in serial_core.c file which handles
1019 * the suspend.
1020 */
1021 uart_suspend_port(&xuartps_uart_driver, &xuartps_port[pdev->id]);
1022 return 0;
1023}
1024
1025/**
1026 * xuartps_resume - Resume after a previous suspend
1027 * @pdev: Pointer to the platform device structure
1028 *
1029 * Returns 0
1030 **/
1031static int xuartps_resume(struct platform_device *pdev)
1032{
1033 uart_resume_port(&xuartps_uart_driver, &xuartps_port[pdev->id]);
1034 return 0;
1035}
1036
1037/* Match table for of_platform binding */ 1009/* Match table for of_platform binding */
1038static struct of_device_id xuartps_of_match[] = { 1010static struct of_device_id xuartps_of_match[] = {
1039 { .compatible = "xlnx,xuartps", }, 1011 { .compatible = "xlnx,xuartps", },
@@ -1044,8 +1016,6 @@ MODULE_DEVICE_TABLE(of, xuartps_of_match);
1044static struct platform_driver xuartps_platform_driver = { 1016static struct platform_driver xuartps_platform_driver = {
1045 .probe = xuartps_probe, /* Probe method */ 1017 .probe = xuartps_probe, /* Probe method */
1046 .remove = xuartps_remove, /* Detach method */ 1018 .remove = xuartps_remove, /* Detach method */
1047 .suspend = xuartps_suspend, /* Suspend */
1048 .resume = xuartps_resume, /* Resume after a suspend */
1049 .driver = { 1019 .driver = {
1050 .owner = THIS_MODULE, 1020 .owner = THIS_MODULE,
1051 .name = XUARTPS_NAME, /* Driver name */ 1021 .name = XUARTPS_NAME, /* Driver name */