From patchwork Fri Jan 8 06:41:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 7982811 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6A0699F54F for ; Fri, 8 Jan 2016 06:42:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98A8220172 for ; Fri, 8 Jan 2016 06:42:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C92F920149 for ; Fri, 8 Jan 2016 06:42:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751700AbcAHGmA (ORCPT ); Fri, 8 Jan 2016 01:42:00 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:34802 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbcAHGmA (ORCPT ); Fri, 8 Jan 2016 01:42:00 -0500 Received: by mail-pa0-f50.google.com with SMTP id uo6so259001339pac.1; Thu, 07 Jan 2016 22:42:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=WWjw9mT5itgWfMFuqy6gAod+rDo1dFKuUtrYimf/iWs=; b=rpPKeXi/oTnuNTAGqiXxleqWTfclsLQlg86R3Mbk5fZXW/8RJSdKgZsVTpYhpwbDDF oFpqnRAtn0LYz6Z+4+/IYvYz23Np1Iu+A+k+/hVuBJPO/g5b9Kbrkss4Xx10bZKFau/v gIv3ZEVd3pxMq8ibEs0Fb8Nnx3d+m6qHTtq5q3JD9VdPPBy4RV202J6gl24m5oTUPhqK 2ZlhtvMNkxm3AduMtx2bHf05ggg5pqYha2mbKf6spwXJj46imMP8c6Qn82/ANHCpjqCH q7ZRT8F5M3Gyt/EjnT5SyvgyjCBK/0Phz7C67LEocR8xOTg0HXOqUi3Bi0+aXL0cQK8y AX+g== X-Received: by 10.66.158.169 with SMTP id wv9mr155551668pab.138.1452235319848; Thu, 07 Jan 2016 22:41:59 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1301:3438:d31f:8a03:32e6]) by smtp.gmail.com with ESMTPSA id p87sm1969346pfi.94.2016.01.07.22.41.58 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jan 2016 22:41:59 -0800 (PST) Date: Thu, 7 Jan 2016 22:41:57 -0800 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Janusz Krzysztofik , Tony Lindgren , Aaro Koskinen , linux-kernel@vger.kernel.org Subject: [PATCH] Input: omap-keypad - drop empty PM stubs Message-ID: <20160108064157.GA30935@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no reason to have empty suspend and resume stubs. Signed-off-by: Dmitry Torokhov --- drivers/input/keyboard/omap-keypad.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index d115acf..8dc34ee 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -212,25 +212,6 @@ static ssize_t omap_kp_enable_store(struct device *dev, struct device_attribute static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, omap_kp_enable_show, omap_kp_enable_store); -#ifdef CONFIG_PM -static int omap_kp_suspend(struct platform_device *dev, pm_message_t state) -{ - /* Nothing yet */ - - return 0; -} - -static int omap_kp_resume(struct platform_device *dev) -{ - /* Nothing yet */ - - return 0; -} -#else -#define omap_kp_suspend NULL -#define omap_kp_resume NULL -#endif - static int omap_kp_probe(struct platform_device *pdev) { struct omap_kp *omap_kp; @@ -367,8 +348,6 @@ static int omap_kp_remove(struct platform_device *pdev) static struct platform_driver omap_kp_driver = { .probe = omap_kp_probe, .remove = omap_kp_remove, - .suspend = omap_kp_suspend, - .resume = omap_kp_resume, .driver = { .name = "omap-keypad", },