From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1631EC433EF for ; Thu, 28 Oct 2021 13:51:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1E14610A0 for ; Thu, 28 Oct 2021 13:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbhJ1NyV (ORCPT ); Thu, 28 Oct 2021 09:54:21 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:37406 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbhJ1NyO (ORCPT ); Thu, 28 Oct 2021 09:54:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635429108; x=1666965108; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=J1Jut8y78dJxzJuQ1c/bXW+ltdI9J1tCNObaN5FWdPo=; b=Sr/NnXA5eLcDxpmBvJLXUjvakBbni4X8d/w2oMit5nZ1y/hfpATvcEle uJlUztXu9RysbvHQ2Bd7in2IhPolYlbpeDk9mX2pjFCdIjf/imv7/99N+ 64osOnALZKgZgZI01CVSfGugvxQ0giapamrmi7WdU13pOijwGoy9Vh9MF KdxPDs7eKPBabr+hsN8r4r2bk/D3m6CYUEUqGHOGwdT6Uybh6DXowzFL6 b6sBAvRvmrZAG6kJwj2nt1gICjAYcrNShJWT8WGoUxXzl3+/hA+0wtyMw L0S4aoJwMXiC8tKxCJkruwZttE03jxcyUWiIpyYrrSw1zavPZF9jOcC17 w==; IronPort-SDR: 0IwVF14ONRPm88DGTuPojN/aVufBLr94jpEqqbvso1umf9fb3NX6y7FsGAHMyaykH7CqZ+Jf0e 0XHI0fRdD882vZse/POUHa+qc3YMOMvztCLXaCpd4S3nq/zTwBcM2vKVShmSwuC2IU3J15V4Dm Vce8ghgtyBWt7Ex2jOYfBfMNZqBH+AqV8r85+KFVNJo9e29AG7h62Ul2FVcXo90Ft5QR8yQak0 0buZnUE+gq8eVUc8eiZiWBa48NHm7Ww1yatC8IS80QZlnZpMK/VQj1o9EobEeYXhd31nugZGSk TxWK7vlG7P809CGQvVaVSp8G X-IronPort-AV: E=Sophos;i="5.87,190,1631602800"; d="scan'208";a="141410834" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Oct 2021 06:51:47 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 28 Oct 2021 06:51:46 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 28 Oct 2021 06:51:44 -0700 From: Claudiu Beznea To: , , , , CC: , , Claudiu Beznea Subject: [PATCH v2 1/2] mfd: atmel-flexcom: remove #ifdef CONFIG_PM_SLEEP Date: Thu, 28 Oct 2021 16:51:37 +0300 Message-ID: <20211028135138.3481166-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211028135138.3481166-1-claudiu.beznea@microchip.com> References: <20211028135138.3481166-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove compilation flag and use __maybe_unused and pm_ptr instead. Signed-off-by: Claudiu Beznea Acked-by: Nicolas Ferre --- drivers/mfd/atmel-flexcom.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c index d2f5c073fdf3..962f66dc8813 100644 --- a/drivers/mfd/atmel-flexcom.c +++ b/drivers/mfd/atmel-flexcom.c @@ -87,8 +87,7 @@ static const struct of_device_id atmel_flexcom_of_match[] = { }; MODULE_DEVICE_TABLE(of, atmel_flexcom_of_match); -#ifdef CONFIG_PM_SLEEP -static int atmel_flexcom_resume(struct device *dev) +static int __maybe_unused atmel_flexcom_resume(struct device *dev) { struct atmel_flexcom *ddata = dev_get_drvdata(dev); int err; @@ -105,7 +104,6 @@ static int atmel_flexcom_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(atmel_flexcom_pm_ops, NULL, atmel_flexcom_resume); @@ -114,7 +112,7 @@ static struct platform_driver atmel_flexcom_driver = { .probe = atmel_flexcom_probe, .driver = { .name = "atmel_flexcom", - .pm = &atmel_flexcom_pm_ops, + .pm = pm_ptr(&atmel_flexcom_pm_ops), .of_match_table = atmel_flexcom_of_match, }, }; -- 2.33.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECC47C433F5 for ; Thu, 28 Oct 2021 13:53:35 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B8B9761056 for ; Thu, 28 Oct 2021 13:53:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B8B9761056 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2aJh2objsXI423rLbQaEtzS+9rAmb/2D1ruRniW2vPs=; b=mJA2UZOFMsPT4F 11IgIzwKkqLJTzDwG33C10T4U6pHLuWTjFSy/kPpSQn1E8sghF+Dik8BZF/jMkNsPk8o0+OUtE75x A+0PY7mSmCKaXymv4P9ZITerltHMEQvm3KIitgADQ9C+jNWfXBJ/LqXZ5S9gvxjniq7JNLZ3zGnpF 5D76MXgQN92MvY/Ww0wZVWU6HKkURynF6iqcHj2nYdYMqCHnLwHk//B8KDe4ivXPnrNMPbNxpB3eJ QnExV+9AOa+Tke2TaLSoSMTwsVPMZsg8QX/L6Ijcy2dHN0vaBCQnnVZCRH7gliZTEYv9k5SXShVsI cyS/8Eb8wz9PlWJ/NO9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg5pK-007zyS-PO; Thu, 28 Oct 2021 13:52:18 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg5ov-007zf6-5R for linux-arm-kernel@lists.infradead.org; Thu, 28 Oct 2021 13:51:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1635429113; x=1666965113; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=J1Jut8y78dJxzJuQ1c/bXW+ltdI9J1tCNObaN5FWdPo=; b=KYEw5UqYrWit7wEkMS+UrJH6FP8b2utX/VCr7AwYdhfmtc74ephPtMJV KkV5MODftHzL24OjPtpVHCOVJvNolfgV3AodP1XyJMTNuniiizf9v4iDU awdswtxAKzA1w1sazKBCO2O+JL7RCfR+ZuRoQFzVsALOFs84/TeVTpiXh IyNmWDFWhRj4z4V+poF8WyNpigJ7CEJW7+Bk9xytRpXquRQUZzfKF3b2Z YPxrYG0gfdezGMSvgNrGB/7VB5o8Rx2LWra5nvDxjacxz8VPftzKGvjd4 p5+yXysNFkN5N/Gc68UEvO62Xayj3s7QzoFH5BIhajZLGIxPFOriiTfXu g==; IronPort-SDR: 0IwVF14ONRPm88DGTuPojN/aVufBLr94jpEqqbvso1umf9fb3NX6y7FsGAHMyaykH7CqZ+Jf0e 0XHI0fRdD882vZse/POUHa+qc3YMOMvztCLXaCpd4S3nq/zTwBcM2vKVShmSwuC2IU3J15V4Dm Vce8ghgtyBWt7Ex2jOYfBfMNZqBH+AqV8r85+KFVNJo9e29AG7h62Ul2FVcXo90Ft5QR8yQak0 0buZnUE+gq8eVUc8eiZiWBa48NHm7Ww1yatC8IS80QZlnZpMK/VQj1o9EobEeYXhd31nugZGSk TxWK7vlG7P809CGQvVaVSp8G X-IronPort-AV: E=Sophos;i="5.87,190,1631602800"; d="scan'208";a="141410834" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Oct 2021 06:51:47 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 28 Oct 2021 06:51:46 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 28 Oct 2021 06:51:44 -0700 From: Claudiu Beznea To: , , , , CC: , , Claudiu Beznea Subject: [PATCH v2 1/2] mfd: atmel-flexcom: remove #ifdef CONFIG_PM_SLEEP Date: Thu, 28 Oct 2021 16:51:37 +0300 Message-ID: <20211028135138.3481166-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211028135138.3481166-1-claudiu.beznea@microchip.com> References: <20211028135138.3481166-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211028_065153_249853_E096A943 X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove compilation flag and use __maybe_unused and pm_ptr instead. Signed-off-by: Claudiu Beznea Acked-by: Nicolas Ferre --- drivers/mfd/atmel-flexcom.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c index d2f5c073fdf3..962f66dc8813 100644 --- a/drivers/mfd/atmel-flexcom.c +++ b/drivers/mfd/atmel-flexcom.c @@ -87,8 +87,7 @@ static const struct of_device_id atmel_flexcom_of_match[] = { }; MODULE_DEVICE_TABLE(of, atmel_flexcom_of_match); -#ifdef CONFIG_PM_SLEEP -static int atmel_flexcom_resume(struct device *dev) +static int __maybe_unused atmel_flexcom_resume(struct device *dev) { struct atmel_flexcom *ddata = dev_get_drvdata(dev); int err; @@ -105,7 +104,6 @@ static int atmel_flexcom_resume(struct device *dev) return 0; } -#endif static SIMPLE_DEV_PM_OPS(atmel_flexcom_pm_ops, NULL, atmel_flexcom_resume); @@ -114,7 +112,7 @@ static struct platform_driver atmel_flexcom_driver = { .probe = atmel_flexcom_probe, .driver = { .name = "atmel_flexcom", - .pm = &atmel_flexcom_pm_ops, + .pm = pm_ptr(&atmel_flexcom_pm_ops), .of_match_table = atmel_flexcom_of_match, }, }; -- 2.33.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel