Message ID | 20250103-wake_irq-v2-3-e3aeff5e9966@nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54876E7718F for <linux-arm-kernel@archiver.kernel.org>; Fri, 3 Jan 2025 08:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cS+DM8g/1DZ++lGRTiLrP/ykpiHku6xeI0up7+EwB9k=; b=VzTlrI+SUeoN3VAqsZATsZw1hW qEkKRqShdwUawfPSmU0UCMG6vnjZQy6lyJ+hEaiPrqxrfa/ff7gaSMl3wQR+K9vFFkLgHKaMsnghs eg1Rg8nAdSfnuFTMfHzCsTt3TGqAXiWLE5/pgbv9tBtnlEAy4K/mw/LQqYAjCOcHX5uiGtEcvGPPm c8DcPa1uB0ANLgsMvPg0NCLOqlJGBmjyXccG4JcWPYRsFLxHIJE9THBS8XqBsb8CSrZCMvJt0PWwP g8UVcvJw1yErbZBVCg3lAB7C13HTSh9FwXgSOPmHU2tIsSHx8fWSKiq+XKr7xNpZXEIYQrh3gQ9QC QauUicMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tTdLl-0000000CVJS-1bza; Fri, 03 Jan 2025 08:48:09 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tTdG7-0000000CTnX-2kvC; Fri, 03 Jan 2025 08:42:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=g1INAJ/bOnX7waGcQOg7lo1eI9rFoeSWtwOQGlYnLmwjeWgPOp7gf6HtI1fq/FBjkr4n2kV59rkDqf+MBpoG3cttcv17+m9nzwXmGHTw+rZztV1iRNKT3Xi7WqsIFFY26tck06O5gp4SfnMOy0a5EwqmH2s61vWw37rHOP/PYB1/3PSuob3ECeqz9fUrVpUjtDb7cy8hhaq/oAYpLuMI9dNE+Lg7uoeEawLOZwYkK1yW9lwqkIKhMSz1NB7E1x8D8D6CVdnQNQ3BntcOIdXhWpC8tVawaq1BlAlytFOhmcm+xo9d7nR2bdEZV6NEK79RBhsecqLsrt5zQIBZaJD5EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cS+DM8g/1DZ++lGRTiLrP/ykpiHku6xeI0up7+EwB9k=; b=G8pNF5BbMuGi/CHzERuc1+FxxvpeB0hnl60r2JKj0G4ZS9rj9L7yxg2uig/d8Q0XT8uH7GqOk7B252aGTRqDi0b+gF8aP5Aa+mHMsQ/IHLynrLVN0e8RgffBpCwmwJar+ct5mTKj7mXEmrFwNpCL2WNx0tiobGtN3Aq1PbByD5b2mR6nhzUFafOJpeTJDzi/L7Nn0j92LyE+WrlwJb1b8DKuY4F1gi+zJNrUy6wxbkF9RYEXnBkpW/JUbsyD49Rx1HqWaEgAggWxhdcvhNlfmy4EnRXG5j7W0g+JE3UaRUvuorjiJhbOGl2knwUQcCjVrvb4yhYiRvoUO0Mflood/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cS+DM8g/1DZ++lGRTiLrP/ykpiHku6xeI0up7+EwB9k=; b=jWSlDaxUOQPubjn6YnL2IP/M+C+3hKl4+vaCFOPmLstSF89B5X4SBcyj0CPu9YCKlLrGY7socGCUmjUwMDi/79U4buZMFp3lHDIw4XHEJb80jokM0AqqnFqkmQBcSvqzd8CaXvMZ06ifKhkilWmPqZKgR0nNLyjFnvBdQE9zgpsmynnD+Ro03oI1u+84ClpdX1fSGCopZ116KYRdtr6BSv4PReC+FI1Gw08Z1juCKrFQW1eozfnVlXleyZs3Z1BLo1CvZPjBSpzXYMWzNkjwAPpmMY7X688/dz3tYWGNii7X3/Wkq2EwczsCBjtjABg2b+StvK/FIOzCNTRf/Lm3EA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by GV1PR04MB9101.eurprd04.prod.outlook.com (2603:10a6:150:20::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.14; Fri, 3 Jan 2025 08:42:12 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%5]) with mapi id 15.20.8314.013; Fri, 3 Jan 2025 08:42:12 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Date: Fri, 03 Jan 2025 16:41:15 +0800 Subject: [PATCH v2 03/12] input: keyboard: omap4_keypad: Use devm_pm_set_wake_irq Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250103-wake_irq-v2-3-e3aeff5e9966@nxp.com> References: <20250103-wake_irq-v2-0-e3aeff5e9966@nxp.com> In-Reply-To: <20250103-wake_irq-v2-0-e3aeff5e9966@nxp.com> To: "Rafael J. Wysocki" <rafael@kernel.org>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Linus Walleij <linus.walleij@linaro.org>, Conor Dooley <conor.dooley@microchip.com>, Daire McNamara <daire.mcnamara@microchip.com> Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-rtc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-riscv@lists.infradead.org, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1735893689; l=1365; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=IYFb5BcVnaCb3uUN830r92UAprUHpPfeHJSpQKDJq+A=; b=6nu0OAi33ocm78dkg6STG8L8Ee09UFhiaBJdS99JJA6i/e2entTy3W6z8anPmAJRyKnEZnYOi xtZqte/I1oQBSVE2uCc1ceFZ+1I7C7kgC1MkG7VRwOXgQJV3b/Wu1qH X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0003.apcprd02.prod.outlook.com (2603:1096:4:194::13) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|GV1PR04MB9101:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a5b7492-0c39-4819-01b4-08dd2bd284c5 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|366016|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?goOgq/mpgwllwQWs8C+2eaimSrTIBaR?= =?utf-8?q?9ewc2R421k32nIFex1IoWH7S8+1ADTyNqpsF9/06vMfE7xdif9FimIrCorPaAebL8?= =?utf-8?q?71JIfiGjoAdYzzVFljyuKDkbbmVoQ8C0hBO9Pw9c78mIqQN7eIID0P4TJZlgQpk27?= =?utf-8?q?8DAwoHi2klFdaULDiUVJP2XVRShNuPpK237WXCJZvUJVmcFTBbtgvdSnllmn9Z5CD?= =?utf-8?q?ZIzX6PEYnedFM2sgyEqY/9zQv3ulFn7nOb7Dgm0M2v3zOKi4dpe+t7Ka6azTpO63f?= =?utf-8?q?GgOZJNY4iqbpB93plLxstza32cRb0lT8497YvO1roPUTw+K+GrK9u8s4F5I6xyWE1?= =?utf-8?q?rA/2qiO9mZtC65lyDRh/B8zsdJ1gujRE4m2ifaX5eEYCVzxHbdcnTDv4ATCELsRhF?= =?utf-8?q?ETV8tPzBluXdr5TbDrtxICmv2ijoyET8glmsRcGSXZSDjOkh4j5HqPwcZB3UYD80m?= =?utf-8?q?EWyqWYsbrrH2qhhxb+b+06zL26AWw/1KBqFVM20bt2U7EneTpVZ3HtRct4t0kEZTc?=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ROc2U?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(366016)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?b8M99BczmnWcooqSY1hlcurlBDAI?= =?utf-8?q?fKS5y01z6SlEjKMIY714K+MbZRMZCQdpbzJIbhm4czBY9opGNPRECDZyNQBOufiZa?= =?utf-8?q?y2OUK04K/sAJAvV0bYCJl/KeCZgWjCdKNRmY1UvD7MXm84gJMNi3h/hG0pfJ0NwMM?= =?utf-8?q?crwUnEx9taJUdc+5jBuFOQ5S6vFDrT4tSwFz5Xxj9OFUlUYEROAZRbNLrH5+v7Mpk?= =?utf-8?q?eSbrwRGzye+OlOcs+YoSKFIJYbZsXcP/5u5NOCJWN58Rwze98KfdM98XhRn9tEagE?= =?utf-8?q?pfy+mjipsOkZwssXKOPiBld71dr3J9OwdfPmk0Ge2up3dL+yUkSyyQuLE1EPsGs1L?= =?utf-8?q?g3Bu7Oz/rQ7cCx8mQ0SdfwlOTagA694czbiONjbIDue+EkEWFB0wcqIGo2e4H5+v9?= =?utf-8?q?2uyf01TLRGN6j+8S4lFLcE11JN8Tfubzj8+PCvfF5C0FJSPDsBgVUYnYM06SUR0tu?= =?utf-8?q?wiP6WDDda6XfChQeDRVx4GnQbjhunoILQh/jX/Z3tQnN5SgXjnHHAVcvzWzaXEUQH?= =?utf-8?q?Q25HK7qdFNwVzZM7847grWXeifeyYu8bLx3KBrFF+ypDkuPIY1Ic6G+17rMVzgIJQ?= =?utf-8?q?rtGqBa5bO4FIZB59rwLi62VH37WL4qv/4Etc00rwULZnO4lxnQ7XDH56/MeC1EOQR?= =?utf-8?q?JbZkxGZ8nLebcO7UjzOCrNy6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Org: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a5b7492-0c39-4819-01b4-08dd2bd284c5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2025 08:42:12.8458 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 8Al1AcWcXpcHbku+hg+Ivet65cdghWEwt0RvJoVscmF2Q0J6rZ/3D66Ut26X+mtb8wegDuWZFl9vECayGhy7ww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9101 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250103_004219_696857_17F3C71A X-CRM114-Status: GOOD ( 11.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
pm: Introduce devm_pm_set_wake_irq
|
expand
|
diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard/omap4-keypad.c index bffe89c0717adf9ebe5b33892efa4dc30b158f83..b7bd649d1628a6bf10db4135f73778f62db92647 100644 --- a/drivers/input/keyboard/omap4-keypad.c +++ b/drivers/input/keyboard/omap4-keypad.c @@ -465,18 +465,13 @@ static int omap4_keypad_probe(struct platform_device *pdev) } device_init_wakeup(dev, true); - error = dev_pm_set_wake_irq(dev, keypad_data->irq); + error = devm_pm_set_wake_irq(dev, keypad_data->irq); if (error) dev_warn(dev, "failed to set up wakeup irq: %d\n", error); return 0; } -static void omap4_keypad_remove(struct platform_device *pdev) -{ - dev_pm_clear_wake_irq(&pdev->dev); -} - static const struct of_device_id omap_keypad_dt_match[] = { { .compatible = "ti,omap4-keypad" }, {}, @@ -485,7 +480,6 @@ MODULE_DEVICE_TABLE(of, omap_keypad_dt_match); static struct platform_driver omap4_keypad_driver = { .probe = omap4_keypad_probe, - .remove = omap4_keypad_remove, .driver = { .name = "omap4-keypad", .of_match_table = omap_keypad_dt_match,