From patchwork Mon Aug 12 14:35:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13760720 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 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 11D85C52D7C for ; Mon, 12 Aug 2024 14:39:00 +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:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Bq/Mb65Pa1pOZtNkP6CgmkuSuykIgipSjpJOfNdZ6DQ=; b=aryoyAUPgQCwXIqotDNlklbzUw lN45mF9qKccgkVFKQgo9Gx81qtKL0dshZHqDaVoW5ECTUDBNpvc6osG7qZrceO5aSUEH9mX5U9NvT NLAL0k6QMY0BWE0nBT/EIuZA4frCAMh4ZeS29z3hggNZ8qmYOEJxWfRL3R7u+Ig904o6r2xJK8VJP DoiLAMrmPOYF2iR92XvkViKV5/AjqNwFq2C2XHxwlMV7/yVZRl3ohSMmk4LlkZTiCSjEd95N83WOs kwxrvzQhL5DAx9VA28lmr7/xvZA+JpqLHdL7MUBBvDdDFNB8bHE2viJrIxbWGWWpz+2tmP+mRRAMS Fd2f8w7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdWCA-00000000bmD-2GmL; Mon, 12 Aug 2024 14:38:50 +0000 Received: from mgamail.intel.com ([198.175.65.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdW8o-00000000ayo-23ug; Mon, 12 Aug 2024 14:35:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723473323; x=1755009323; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tX0m5QDjLh6ZQGlkWAS+et//rPaZnf4Njh/KWLdYqZY=; b=HFXiPqqHzeeB1ZK3J7UrJ/rsWJN4aqZHm6W+aaaPx3PvSdsSNH8gDWx7 kuPKn00B9a8A0go0M/7II/9JkyET3uaAvHaL7zHrubJG8uYBdF3r7gzfw dTALO0bJrQwssTdU+ZhTU2pXxN25iSDOfPEiIgNO/NshMplhOF8MsMEtU qXm/ern27wx3CgCE3OFVs3OdTYyVuRdUsGfHUmEhZ09QlKcTbMv7M8n6f e99BrrDxxXUqJxkNfjMz+tBk3EJMwW8DKb7JA4rIvFY37U++eku5RsXHJ +RXjdz/NORnuaUATYgKz54DyOzt+kLG91TVL8fzCYOUu9VPAtbtEUrn67 w==; X-CSE-ConnectionGUID: 8UzrqcAgTVGSLtU2+6m4UQ== X-CSE-MsgGUID: gBCQDXKzR6ahUOQ+7a3Taw== X-IronPort-AV: E=McAfee;i="6700,10204,11162"; a="32977357" X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="32977357" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2024 07:35:22 -0700 X-CSE-ConnectionGUID: 1ojTV89YTd6u9U4L20gaYw== X-CSE-MsgGUID: olL4LqfKRL+oeb1lof9fQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="89114390" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa001.fm.intel.com with ESMTP; 12 Aug 2024 07:35:19 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 7498B178; Mon, 12 Aug 2024 17:35:17 +0300 (EEST) From: Andy Shevchenko To: Greg Kroah-Hartman , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Jiri Slaby , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Stefan Wahren Subject: [PATCH v1 1/1] serial: 8250_bcm2835aux: Switch to DEFINE_SIMPLE_DEV_PM_OPS() Date: Mon, 12 Aug 2024 17:35:14 +0300 Message-ID: <20240812143514.953612-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_073522_597296_F3D6251A X-CRM114-Status: GOOD ( 11.07 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The SIMPLE_DEV_PM_OPS() is deprecated, replace it with the DEFINE_SIMPLE_DEV_PM_OPS() for setting the driver's PM routines. Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_bcm2835aux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c index 36e2bb34d82b..829abef2564d 100644 --- a/drivers/tty/serial/8250/8250_bcm2835aux.c +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c @@ -245,9 +245,7 @@ static int bcm2835aux_resume(struct device *dev) return 0; } -static const struct dev_pm_ops bcm2835aux_dev_pm_ops = { - SYSTEM_SLEEP_PM_OPS(bcm2835aux_suspend, bcm2835aux_resume) -}; +static DEFINE_SIMPLE_DEV_PM_OPS(bcm2835aux_dev_pm_ops, bcm2835aux_suspend, bcm2835aux_resume); static struct platform_driver bcm2835aux_serial_driver = { .driver = {