From patchwork Fri Apr 9 11:13:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 419005 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.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, 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 21949C433ED for ; Fri, 9 Apr 2021 11:15:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7E7C61105 for ; Fri, 9 Apr 2021 11:15:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233865AbhDILPw (ORCPT ); Fri, 9 Apr 2021 07:15:52 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:50814 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232974AbhDILPw (ORCPT ); Fri, 9 Apr 2021 07:15:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617966939; x=1649502939; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U5NiENJ3r6pr7oIV8nUu7z5RbPOZH4Ba6WRiY6iI7HE=; b=ud4zoAe8HHFbV8eCxB/P7sGcuQQoRwguk09WxJcfPhoQqEdmmhmXYEkU tu5FcUVWDKthmO+iFGK77O0bNMyn9zUsKoL0aqX+x7huREWiKrLWPb/A9 Hoj2MiMAYMc8t08UZF3CehTeZ9aXIGTa0NwNiolCLH2TT8rsiPJekmYBv tEXtpDTFypyH/rJgtqq1fTus5rVVSeeVdXsHi/DE6Piu4eM0gf3fJZL/T IcNWvS+M/eZx4+iV2p2O52d4ImAIox8i84/FgRREdHRpPY2dP2TDai0Uy j4VhO5oZndq37ktBYHCvvMC6dTEIon+jn7bEP4UfBkOtxSrssvaBM6HL7 Q==; IronPort-SDR: 19NJZI65jRompkMez7dFAoNAqASItaCDK1B57NnBGb6g6Yd1fGM0JOcnvnQO1Akz3gtDpMVyFe JqzvcBxrjAHU7svX0cK06WDfuPjD00zga555lpNyam9MQSc5kKhn9eYYY3kwIic+SbHZRXkg2m kNjnfnpwKB9v+oBZZM7YskcgBk3ugfvLnAreRU2GHa4zh2Rmmr6REd3YDnWwFW5YuSLN9q1VUA 1wv+cBgYFKL6sGD74VwkuoEYCsza3snWjeRlRr2jg9Ze5scK8hELDnMvkHpvxzdZqS2T/fUgyT 8fw= X-IronPort-AV: E=Sophos;i="5.82,209,1613458800"; d="scan'208";a="50565871" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Apr 2021 04:15:39 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 9 Apr 2021 04:15:39 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.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; Fri, 9 Apr 2021 04:15:21 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH v2 05/24] ARM: at91: pm: do not initialize pdev Date: Fri, 9 Apr 2021 14:13:26 +0300 Message-ID: <20210409111345.294472-6-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210409111345.294472-1-claudiu.beznea@microchip.com> References: <20210409111345.294472-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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))