From patchwork Thu Oct 29 07:53:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 311177 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D85F0C55178 for ; Thu, 29 Oct 2020 07:56:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C2892151B for ; Thu, 29 Oct 2020 07:56:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jpkjTuHp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731482AbgJ2H4l (ORCPT ); Thu, 29 Oct 2020 03:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731422AbgJ2Hxq (ORCPT ); Thu, 29 Oct 2020 03:53:46 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491D0C0613D5; Thu, 29 Oct 2020 00:53:46 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id w21so1660198pfc.7; Thu, 29 Oct 2020 00:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hGeI6Nxv27zFf1cpMaROkZffEIZtimpVmaFXRbyPh5g=; b=jpkjTuHp/ctst1xgZYhQNSh47JeAQHhVsyo8EnPyzhahwTfkT2Fb+NAYJfV2Rdu2vi o8JuN/eNsBnk/h5Bp1VG+kpYoXHlnKcyzoj6PjL4IgsG8w0yhOIFaRIHdkyj37t4loZm NB9XE98LfUzwNQvLNA7tEeyvaScTMT3vSPFT6L0UzF9ETeC9joKPc6RcDe4lRmjBp+uf QiZLY0q1l33KFgXJdVeNp12KiRrzOmQ1LvUy85ukxZlR5cfI/ZoNVYwfENs7frtCQumf NuzpeLAW3Mn75bAAduwhfPG1hDOHrpoYIVk1tlP+lRW5vpm7iSJma5jFZE4AE4WgEpJW 19DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hGeI6Nxv27zFf1cpMaROkZffEIZtimpVmaFXRbyPh5g=; b=rdfHVgdMXNmSJwcDullGpZW1dil+wPtgawmqRZBkoZ3LAwK+8FVbK0mGdFP71WExOE bEwpRtpgsMjup9aFbX4HUWaxU4ZUjIsZ3gUv6HSPETnxBPQvRrNDCkmOfLi2xwrQhSQm 8IFdriPv8icJIcYjvz6LXSVv00xCCfGJ5Lzy7znFDzz6jmmXrg0BpviHk0tbXrwCfHB+ t7PFboN+1YcZ2ayXVchd3vHevJuEyDBxBLFiCfDsYggnHDn00OAWLBiiin5cHjAEzhEM Meuj6Xp3uQk8vD3Y2ekOZLkqjzQkmWmWer5QnM3E6x1zCO64KwDH7JlN6y5gO8TBEwcF gftA== X-Gm-Message-State: AOAM532qVFJxPjDKYYf/+DR640LPuoV6TLomBM70KZJkGrUv758UkWXy 0klrlQu3oQuk6toOAxYAg38= X-Google-Smtp-Source: ABdhPJz2IbK59ooRsRBpzJmOcejoWwaK66Nh3QtHv/cEW0cCfp9Hlvco1DL9HvRtNqhvEYfoM76LHg== X-Received: by 2002:a17:90a:4b45:: with SMTP id o5mr2843503pjl.223.1603958025956; Thu, 29 Oct 2020 00:53:45 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id h184sm1890523pfe.161.2020.10.29.00.53.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:53:45 -0700 (PDT) From: Coiby Xu To: Guenter Roeck , Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/3] ACPI: watchdog: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:53:25 +0800 Message-Id: <20201029075327.228570-1-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org SET_NOIRQ_SYSTEM_SLEEP_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu Reviewed-by: Patrice Chotard --- drivers/watchdog/wdat_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/wdat_wdt.c b/drivers/watchdog/wdat_wdt.c index 3065dd670a18..0d912ceb2ecd 100644 --- a/drivers/watchdog/wdat_wdt.c +++ b/drivers/watchdog/wdat_wdt.c @@ -465,7 +465,6 @@ static int wdat_wdt_probe(struct platform_device *pdev) return devm_watchdog_register_device(dev, &wdat->wdd); } -#ifdef CONFIG_PM_SLEEP static int wdat_wdt_suspend_noirq(struct device *dev) { struct wdat_wdt *wdat = dev_get_drvdata(dev); @@ -526,7 +525,6 @@ static int wdat_wdt_resume_noirq(struct device *dev) return wdat_wdt_start(&wdat->wdd); } -#endif static const struct dev_pm_ops wdat_wdt_pm_ops = { SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(wdat_wdt_suspend_noirq, From patchwork Thu Oct 29 07:53:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Coiby Xu X-Patchwork-Id: 311178 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EDDEC55179 for ; Thu, 29 Oct 2020 07:56:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A123620EDD for ; Thu, 29 Oct 2020 07:56:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tsgIMHwo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731836AbgJ2H4Y (ORCPT ); Thu, 29 Oct 2020 03:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgJ2HyI (ORCPT ); Thu, 29 Oct 2020 03:54:08 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B39C0613D5; Thu, 29 Oct 2020 00:54:07 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id a200so1651641pfa.10; Thu, 29 Oct 2020 00:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=45WrHfAKbdYHjpbC20AMO5osfugbGDlzHaoUzU5Icuo=; b=tsgIMHwo30bupNgyRYBxQu2rGAfExKotwCphoybjhufKRCTb3vJjtsAJJRcXjKXvD6 LRTFzBRuz3x95vTMXb8osjf93WFT5UR6Bs/VHkhu3r5z7w1+yRur1hslaq3eobRenbYe 6V8kG40I7rI6J6KchdjtOqMHhifU6t9nHd1YYeMzMOrKBp+0dbeE+I9ohPgj8h8oJZYV cU6v80uAlvJwWelSuQFgrl9AxBXVCpNilmSjDW9++G8ZuczFzdjG+C9q5boqW+tISfOF Mw1PYGFmsgt4oZZbHm/ql1hyE4mwyudvcuq16AC0kjhn/hEhB3NvsSwXn1icU8S0FTFY c6gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=45WrHfAKbdYHjpbC20AMO5osfugbGDlzHaoUzU5Icuo=; b=FKQcm6wRpL4fpLVKnTIs8C1WWylrlhW+mKobrw2qp3b87kXcGsACVBIjSdVcP/5YWK eSzxq7/yU1EZ13Hekjr7bosG/uclO/9LAICQBu31S0lmdmKckoFCWmRxb8BE7w8+dOf0 HZ5sJePmBrOmBzNcQaZ4P3lfD2nJD0nCpgX3zW8/4OqxubygnCmCzk5qnwnZXBRR4zdC C2xCy5J9nGsmvj789JLwaD/61Xu4ms5QtswDzIJixWuIaNVzPC8qdKPTCuYQWXH5s2r9 maciq51PXj1Aiynay7Wg7Zd7gxhDBbobJvP+t0QX9m4c9J0N2DhYfKHTHaiAJ1gHYQvF PBIQ== X-Gm-Message-State: AOAM530lKCIg0FdB93aQa7t4WkWRQRzInHmsU8TKQPHM8Q/0Eiv3Q6yY p/NxDTg6u6l1QDYWaKqNwug= X-Google-Smtp-Source: ABdhPJx99n1MhtdolJkw34LO55uySelHItQmK6db7xOJvZRohQV+1cIV/6MP4ynkPxX2n4qvV/sq2A== X-Received: by 2002:a63:f40a:: with SMTP id g10mr3027586pgi.66.1603958047062; Thu, 29 Oct 2020 00:54:07 -0700 (PDT) Received: from localhost ([2409:8a28:3c42:6840:9efc:e8ff:fef2:1cdc]) by smtp.gmail.com with ESMTPSA id 65sm1573098pge.37.2020.10.29.00.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 00:54:06 -0700 (PDT) From: Coiby Xu To: Guenter Roeck , Wim Van Sebroeck Cc: Barry Song , linux-watchdog@vger.kernel.org (open list:WATCHDOG DEVICE DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/CSR SIRFPRIMA2 MACHINE SUPPORT), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/3] watchdog: sirfsoc_wdt: remove unnecessary CONFIG_PM_SLEEP Date: Thu, 29 Oct 2020 15:53:27 +0800 Message-Id: <20201029075327.228570-3-coiby.xu@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201029075327.228570-1-coiby.xu@gmail.com> References: <20201029075327.228570-1-coiby.xu@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. Signed-off-by: Coiby Xu --- drivers/watchdog/sirfsoc_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/sirfsoc_wdt.c b/drivers/watchdog/sirfsoc_wdt.c index 734cf2966ecb..dc8341cd7d44 100644 --- a/drivers/watchdog/sirfsoc_wdt.c +++ b/drivers/watchdog/sirfsoc_wdt.c @@ -170,7 +170,6 @@ static int sirfsoc_wdt_probe(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP static int sirfsoc_wdt_suspend(struct device *dev) { return 0; @@ -189,7 +188,6 @@ static int sirfsoc_wdt_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(sirfsoc_wdt_pm_ops, sirfsoc_wdt_suspend, sirfsoc_wdt_resume);