From patchwork Mon May 13 17:46:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Soren Brinkmann X-Patchwork-Id: 2559641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 88149DF2E5 for ; Mon, 13 May 2013 17:53:35 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UbwtH-0002ng-36; Mon, 13 May 2013 17:50:32 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ubwqc-0002iP-Kw; Mon, 13 May 2013 17:47:42 +0000 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UbwqP-0002fG-Gv for linux-arm-kernel@lists.infradead.org; Mon, 13 May 2013 17:47:31 +0000 Received: by mail-pb0-f51.google.com with SMTP id wy7so4645575pbc.10 for ; Mon, 13 May 2013 10:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=gb81txd+slJ2Xn2o78SKJkvNu/uXoxZxbgnC3lJ+EDg=; b=y+T6OdzbbD6gkmQJJ/VHIuZu72n1VT3YOHcHSDSFPAb8OIu6ZbKuq9b54BBgFutJ66 YxEgl7Stpq1hrbBY98EdT6dKJOwWjXeuLMal5ZtOWKtia0yeFYfrXDbJ0Alr0n7S6VoT DYwOYv9sGnF4Fv4zizZA2nHLc0DAT70CvcBn3DDpDNOMe/EqRPj095ottc4PEApMOay+ X+2GxE5/ZGCVKOtu0hbVjGoinW92fYCMDwkBSiBnx7K3C69iS4UE4p+T64enhMNDFG6Y 3dW5+wgpaWAYfN9NADw1QPA50OLTpHFG9cfdLq0UXgkGUNBZkq3vRClyZSovSvPGYF1L MxQw== X-Received: by 10.68.180.4 with SMTP id dk4mr30205312pbc.104.1368467225849; Mon, 13 May 2013 10:47:05 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id gc5sm14843292pbb.19.2013.05.13.10.47.04 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 13 May 2013 10:47:04 -0700 (PDT) From: Soren Brinkmann To: Michal Simek , Josh Cartwright , Mike Turquette , Lars-Peter Clausen , Peter Crosthwaite Subject: [PATCH v2 1/5] tty: xuartps: Remove suspend/resume functions Date: Mon, 13 May 2013 10:46:35 -0700 Message-Id: <1368467199-8702-2-git-send-email-soren.brinkmann@xilinx.com> X-Mailer: git-send-email 1.8.2.3 In-Reply-To: <1368467199-8702-1-git-send-email-soren.brinkmann@xilinx.com> References: <1368467199-8702-1-git-send-email-soren.brinkmann@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130513_134729_661361_262F65F7 X-CRM114-Status: GOOD ( 13.49 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (soeren.brinkmann[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Russell King , Arnd Bergmann , Stephen Warren , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Jiri Slaby , Soren Brinkmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org --- drivers/tty/serial/xilinx_uartps.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 4e5c778..b5f655d 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) return rc; } -/** - * xuartps_suspend - suspend event - * @pdev: Pointer to the platform device structure - * @state: State of the device - * - * Returns 0 - **/ -static int xuartps_suspend(struct platform_device *pdev, pm_message_t state) -{ - /* Call the API provided in serial_core.c file which handles - * the suspend. - */ - uart_suspend_port(&xuartps_uart_driver, &xuartps_port[pdev->id]); - return 0; -} - -/** - * xuartps_resume - Resume after a previous suspend - * @pdev: Pointer to the platform device structure - * - * Returns 0 - **/ -static int xuartps_resume(struct platform_device *pdev) -{ - uart_resume_port(&xuartps_uart_driver, &xuartps_port[pdev->id]); - return 0; -} - /* Match table for of_platform binding */ static struct of_device_id xuartps_of_match[] = { { .compatible = "xlnx,xuartps", }, @@ -1044,8 +1016,6 @@ MODULE_DEVICE_TABLE(of, xuartps_of_match); static struct platform_driver xuartps_platform_driver = { .probe = xuartps_probe, /* Probe method */ .remove = xuartps_remove, /* Detach method */ - .suspend = xuartps_suspend, /* Suspend */ - .resume = xuartps_resume, /* Resume after a suspend */ .driver = { .owner = THIS_MODULE, .name = XUARTPS_NAME, /* Driver name */