Message ID | 20240208120959.2513-2-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp145885dyd; Thu, 8 Feb 2024 05:00:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZxWY8ENui3wZJEA113K3bP+a2YlobVUrSBuk+NR7o1mKFhnd3Lkczi1ACi7Ees5fEMfHI X-Received: by 2002:a05:6122:2682:b0:4c0:1cc8:8819 with SMTP id eh2-20020a056122268200b004c01cc88819mr5974582vkb.5.1707397247056; Thu, 08 Feb 2024 05:00:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707397247; cv=pass; d=google.com; s=arc-20160816; b=JNITLijs6Fr3LZMvfs8LkAiHks1RQ+vbrfvq8C9ne/1Q6+EVc25sS0zPR3R3qbrLUW p4aHTEGL+NXK5cmMxhCxpTYmR4Uh8SHnzhcgDW04wo8B6HJEis+akwxnRDu3TGvni1kh L9Ry1EC5gO4w08FVqoIwcq95G9Mq/n+cnWpEHkTb8SloqoQ7HD8mZyjtOQEXZuWdYaLe F8DvjfGc7R63neEqAkx+j6gUTT7nlPhb3Z6pytnsBI0/Cabz7fUTZmqlcPWQZbiM7IDC LInzfSDZ4lYAG4IzIfHuhrpcZ+HQz55Unp1XvtwGXsCk57zGRF8FcstGIChTgKp9f+bX RHJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xBsQxmwK1ZRX6CKtCMZJhmv9KdA5Ea56jwwOAQ57OPk=; fh=DH5gBrw4kqsDjhAwNsP7kh8V0p5TQnAqeIHa67frYjw=; b=QE6NALRIoz0SXArY2oxbDSiutNT2no2y9RI0UdWs4m/oDcX8MLr2JmIbEov1YILonF pMLz/z4tmbkUl2X7PstIEbdDrmJ98odOAWhFt7VN+8swAUJOMB1YPzAtmb5cp9/kQJ5M ANApmHMKqeLDScdRSDt/5XThg7DYuWDBJIHJwj5l2a34kw4hxrobtED9HamfweiqN+CY ghlmGWQiRFb8rXv0RJT3cqtkALgAIa/270dhJjTrmf7In2g5oACMUiw4oO6u3cse8RQ8 btsAjHc4X6vSDu7OTzwNAohT7tzzOknEO3zvxfiQslR52wtT6TqiSmFVuNTXNE37+CMA pYqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H/Dt3l7y"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCX6MiR9J5BwY6WhtqKJxAp+TRfkA+w15ItkJODgpeaq2ecj32G9J23E3I1QSPty+TYS7OkdXr46KZqW07J5Z1Ijvybq6A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id em13-20020a056122380d00b004c04425061esi526956vkb.234.2024.02.08.05.00.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 05:00:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H/Dt3l7y"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58027-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 82D621C2665D for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 12:10:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C9DF71B2F; Thu, 8 Feb 2024 12:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H/Dt3l7y" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4AB296F535; Thu, 8 Feb 2024 12:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394217; cv=none; b=fLdN3pi+E0lQXVF/TmIxguhypqL+GAqLnOfQmH4e8e6bKme5CM64wHYzNAxz+ka1U8Faswlz7o1pK0KDs3t4i0Lo0lyuuYq/dUTi4rhEoR2702zIYprmPfB7gJOa3kEJKYuA3KmTkvr9Ok9mow/agNG7pdN+pGJvxYdmhoFrGC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707394217; c=relaxed/simple; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=k0LgsBpARegaw3w5NdsEB3RcThdT2maI/LkNn7wqb7Ra6gGHMurjvPosmEkdkTsxjL+Uowye6H4HPjFT0hzzNKwXNgkrkNviTqHmkMtCikbcCz6qTM6/scij+aNwZOljge2OvUZJ7UDqy60WhCqMr/ZCdPvmvjYXjLtmFF5R51c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=H/Dt3l7y; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707394216; x=1738930216; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; b=H/Dt3l7yGZJ4WCUIGhrvpvs8vgp/fqSdn4/0G2wLaRzkhA3Udoy+RRgu SyhLH1Cc/qi3AXZ404Nhgj0Nn8rhvNYCPpPihSVVubUwkLdajcEcIgalS xL2CmUUikdwB8YsPXL/Mzw/QnQLao37FPFg2fOFPhjCMYuKUjL/qqLBm8 p1qFwFYLMJ0eTVkxslFrmD6vbPAFjvnEgDwICpfhdCrIVZ8YqnNk3HbOd Tu3KNIt0tmuU3byJR037jSGCTkiCdZSY0NqMVk3KtHqRdkr2OBfyy3h6u CorYwTq8cs2HpH2Giz9NhPLjNia4ImT6IhlyWnzyVrhjFDvCfWviqMagv A==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1341297" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1341297" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1625935" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.52.95]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 04:10:13 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergio Paracuellos <sergio.paracuellos@gmail.com> Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH v2 1/4] MIPS: lantiq: Remove unused function pointer variables Date: Thu, 8 Feb 2024 14:09:56 +0200 Message-Id: <20240208120959.2513-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> References: <20240208120959.2513-1-ilpo.jarvinen@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790335774840320050 X-GMAIL-MSGID: 1790335774840320050 |
Series |
[v2,1/4] MIPS: lantiq: Remove unused function pointer variables
|
|
Commit Message
Ilpo Järvinen
Feb. 8, 2024, 12:09 p.m. UTC
Ever since introduction in the commit e47d488935ed ("MIPS: Lantiq: Add
PCI controller support.") ltqpci_plat_dev_init has been unused. In
57c8cb8f2429 ("MIPS: pci: convert lantiq driver to OF") also
ltq_pci_plat_arch_init was introduced.
With those commit being more than 10 years ago, it seem neither is
going to get used anytime soon. Thus, remove both unused function
pointer variables.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
---
arch/mips/pci/fixup-lantiq.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c index 13009666204f..8bcc136976dc 100644 --- a/arch/mips/pci/fixup-lantiq.c +++ b/arch/mips/pci/fixup-lantiq.c @@ -7,17 +7,8 @@ #include <linux/of_pci.h> #include <linux/pci.h> -int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL; -int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL; - int pcibios_plat_dev_init(struct pci_dev *dev) { - if (ltq_pci_plat_arch_init) - return ltq_pci_plat_arch_init(dev); - - if (ltq_pci_plat_dev_init) - return ltq_pci_plat_dev_init(dev); - return 0; }