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: 12193791 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,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 EDD4AC433B4 for ; Fri, 9 Apr 2021 11:18:42 +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 7CD7B61105 for ; Fri, 9 Apr 2021 11:18:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CD7B61105 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=kJDkd7j7KOxSJ0hFbUowwzi7n 5UKsa5fQcJWNDxRPERYLJ+M/R/BsxjJZ0ax0DmwS9lI9vNRheoZXoZIz/YFBkEOTg/2PhFIvqTf8l aRyjcW/IFJDqlgnL+Uz77YorpHyxPnDJaA8dahdV4R5YAgtX9gJWJEDGNGH8jxfkabNyUGxZRokTQ qeZfu1nH1DwYwWWall9PYUcQdwqscuOX8b/u7Zt37fQa5djRbmAy4Jx5Bj1jO5XOhmJVMeY0fClBj Zh9bcj/oRzFFAW49n/V1z84DA0rXlEMzE49zk88Mx8iLASCKjvqjjqPMttk0Yp/pZ30nE8vRO3s7R J+G+1x6aw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUp7j-000Xma-Vm; Fri, 09 Apr 2021 11:16:28 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUp6z-000XVA-Ga for linux-arm-kernel@lists.infradead.org; Fri, 09 Apr 2021 11:15:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617966941; x=1649502941; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U5NiENJ3r6pr7oIV8nUu7z5RbPOZH4Ba6WRiY6iI7HE=; b=wRvOl34HLApdjoH6WZnZHB8ZfF4CtmsqDOffwkvPHL9C8+ND+CUKA/LN 75BxkzndXRM2PtpLJHBEtad8/VUPGNQVNKNv5QqpgXex1QqPC4vwlF6Y6 H5WTv6YKzQbxR6XNlLSdqEVgSjJp5rfBLTwGEOwEAgm6D0gDEgcsDkCGp oECiVic2Wem0qQ21xRL67xpQGLlSZM1Xby9v0seZXV1l4hNo+8EjqpL1Z kiCyM+ZJ8f+rl8YLVz4ay0h9Qg1brjLVm/tIBwR96c6CnrQu6PcsCHq2B Oli2M3Qc8h5Yxbc1EEB+vanftZm9PDv90JD7gySrmH7rG6bcUTE6rbQPy w==; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210409_121542_135488_3FB3FDB8 X-CRM114-Status: GOOD ( 11.53 ) 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))