From patchwork Wed Mar 31 10:58:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12175231 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 7AAB0C433E0 for ; Wed, 31 Mar 2021 11:02:31 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 CD4AA6198F for ; Wed, 31 Mar 2021 11:02:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD4AA6198F Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=f7y/cHzHK8oFp861pNsSNUBRcGZ822XnVbfOvujTg1k=; b=T7kXPYz6pM2eTcpBNpukhXk/a JmfzvW0WvlXM3Z3Mbn6GebVh3AzOoqazZj6Eob1UOguTusmSreVLjnQ6yPyUR0oLLO8C4fFiAK0fa dfTAFE5bDsW/NgHAzIsZS38IESBQ9BYOEMcb3XvRQkvUi8+UPE0N9n8VTHYNFd4PqTugqIwRSyfn3 nWUT2zIIAnmVOR/1JMCJD9/bFiFBv4cHm1zADlDeFo7lmZ1r+w/sOA29zQ9YP0B/UOEZejU76Mu1H kftFB37QQvc3Z74TWzNrFPO+s5TUfjcNMCjBv4tAi0qGgPA6n+HdP6Rup5Cj6FNcdfs8mga88Pe3d mgIV/SX4g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRYaO-006JYc-6f; Wed, 31 Mar 2021 11:00:32 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRYZL-006JL4-4V for linux-arm-kernel@lists.infradead.org; Wed, 31 Mar 2021 10:59:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617188366; x=1648724366; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U5NiENJ3r6pr7oIV8nUu7z5RbPOZH4Ba6WRiY6iI7HE=; b=zkSr3UocbPg8WU05TBsi7ia/neVyLW56eJgwo3Y+Dq/beAwN1K9DtnLy 3Z6JmyrdKEKTY8RpftW9YZ3E5RRfgme4Kk6cDHSI0qQhl4bjc3iWVHsAq Br0EOt5GGhREIi39mk62Ndo+ra+YuKJITPpCqdOCsJKi3c8ioGf8nExfQ DsIs2Db3S0+jRq52/FOtK++w2rytejKo2mguFGzgOst2a8NgacI8/RbX6 BoSh8SXulfuxs4qb1c7bPWVVh1OG0G80RV/q2RQZ+TzO4PrSPQw1HKoA2 nF8ELSRHW3Yl8CLMwTLigSCf87Mc8Zvu918KyL8v9HuiloXM9hXJ8AS8h g==; IronPort-SDR: Jv79PBKtv5f6X63XwZ9UhUeI/BxnU8liinkUXXvp+gMwZoph0kXFvhiB9tL7ucdwP0YKF7gqhz 4E6DM61VRoRmweswlGTFxEwxe3O8oe0KISduOmQF++vSd8TmSxiKF53fFjEvB0xTnot5oMFWfU 2l3+JjxtzDD9qIoXScudh6kVgzRqOgTjQH48fmux7KnryJ1/n9CkgEiIN5CgrV0YSHEpo5Wu5b KTU6SlvUL34OCTmgU1TXjVkPiGVrsVnecSxc8Cud5KHltTma/YUcQQ72DNuFMxE7WJm1OAlZdV 2ns= X-IronPort-AV: E=Sophos;i="5.81,293,1610434800"; d="scan'208";a="121233915" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 Mar 2021 03:59:25 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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.2; Wed, 31 Mar 2021 03:59:25 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Wed, 31 Mar 2021 03:59:22 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH 05/24] ARM: at91: pm: do not initialize pdev Date: Wed, 31 Mar 2021 13:58:49 +0300 Message-ID: <20210331105908.23027-6-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210331105908.23027-1-claudiu.beznea@microchip.com> References: <20210331105908.23027-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-20210331_115928_027005_B2E23496 X-CRM114-Status: GOOD ( 11.85 ) 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 There is no need to initialize pdev. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 5a6ce1d88971..65e13769cf50 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -659,7 +659,7 @@ static int __init at91_pm_backup_init(void) { struct gen_pool *sram_pool; struct device_node *np; - struct platform_device *pdev = NULL; + struct platform_device *pdev; int ret = -ENODEV; if (!IS_ENABLED(CONFIG_SOC_SAMA5D2))