Message ID | 20240205133450.5222-2-ilpo.jarvinen@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp923755dyb; Mon, 5 Feb 2024 06:51:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IExxcEAdMPERkEDnxyqHO10sCsdgbrAecvkhBCC4yD6HTJsxBNIr5RK8ijHywzL04JiN32w X-Received: by 2002:a05:6512:2c94:b0:511:4a6e:862b with SMTP id dw20-20020a0565122c9400b005114a6e862bmr3398791lfb.43.1707144698648; Mon, 05 Feb 2024 06:51:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707144698; cv=pass; d=google.com; s=arc-20160816; b=Wju+frLOPisLCnOoUxAqpE2SWzBN9j2A4W0T+AJTjhuoCO5cq0sSA6ctu4Cvyrgy1f k7Y4BhS6yHYoW56x62/S0E1VPvxyhlLdIap9lrhkbTuOZV4lybTTvViQMu7/som3ENCo M8ki1m+vuqEPrPhQodGpsolwhirqPrOAMsVbbPIetqe0YYcVJ70lBnqCEkA080d7biG3 xQsZ2GKUcHso0UONDF/uZs1HBa766s0zTnZKcFap937zoYJJmwnGQ4Mv8v1GvLrasvqy Vsgqo0Q01WYPWyWcTd+1auiyVlVw2Tp5k8gcfga1Ve5JjgDDe3sKh4JQOWgQujWiIZz1 ipYA== 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=6v9b1WNjY9hFQ1NyB1bXmvMu93sBhtz2OuN2HVvjpuI=; b=CSuahiQaezUcHuvWLv7doWqYnSQKsS1YZvw6r+6SQCcGsomJ8dbwbRPSAjBwhh324v 8UvNwu2Vl5vi0cedMeoI/RZamPS0mU5y1hpNqo2iFCNrVyKMsedhcLSALmNFQ8McvIoS ZfU7jMjVTDxMMW9+xDvHnYNBKqNH4uXDKOYzA0NUZ+F+XSolwZM/OQ6VFe23B2vgIX59 WUK/VWXdXUAnqHAoN4IHzUAe13JQt9Khwz7kyQmiMiGVT6uIv7HGVNntbZJT0ncgb61N 9WyRXkcsLPRA6kf/jZ4F73Mx+u2a4g1J43V/Hez+10H0axbEasWXt4LcCiFyGywEwVGb CNVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UBGvnKcM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUrUNmOSQ9tCEIW1cW9ge/4J5c+fwUQKFSsHub1WGAR72asashUQsosPdWkUx5/WXKfDVT4E7XOUvDnO0DF67jg0OpCgg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id zj2-20020a170907338200b00a36008f4674si4195061ejb.160.2024.02.05.06.51.38 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 06:51:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UBGvnKcM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-52723-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52723-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2896E1F247C1 for <ouuuleilei@gmail.com>; Mon, 5 Feb 2024 13:35:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 824B42C195; Mon, 5 Feb 2024 13:35:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UBGvnKcM" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 263E528E0D; Mon, 5 Feb 2024 13:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140112; cv=none; b=L4TGJlp5q+DAMFcFaGkW0ffwB3sY43Mm9RWEjeRbzskJtOUs+suRnqXRbgLJc6xNrEhKQ2Bl0g+Dku4JLQXDyR1PKzzApocTJt9vI1NkE1Rqz+Ao+K6K7Z30Fd5jwRh0m0k4qOD8U6hL3SFMHD+4KZ9rlzYwY0kMI5uYNMWL+jg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707140112; c=relaxed/simple; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ZTbDEUT6ipbyUtKKeRS9r+nim7KLhBcZFzjGDWuMWYvWYJ1daY+effDB4GLAbryLaNzajaFtbQPjKWAya+itfMC3bBjJWBf+pglPzizGM4Qsjnd/LiBda3YgYG/BQfDAbQqsaBMlzoPeox4QE0UtdMDYLAI9/dE9K3Jbi++/JFE= 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=UBGvnKcM; arc=none smtp.client-ip=192.198.163.11 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=1707140111; x=1738676111; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=X2Muz8pkoRwEhUvH9ti0eknrxae4vqD1PWSyx9/gso0=; b=UBGvnKcMsGdbbJKLJjzHHHrCDQTkaaOfFnSj2p9Adk1HyVerbVSyCXJb zGEEMgKVvKYRmsXWdj1s5DBx3ln8xX4TjJ2a9sbxEGs61UjqknN8pSpFk XKqOK0Eq4VbUyCdJ8RptV/yo3uU+DKekXqV2ZFslnB0TlZq7eUMSTEOaG 5y9dYgicI6IwmAygqQsoKNNcVQODYFHTjm1cDRHFYx1YhegNQTVTGL66g HJgrP321qNf785Rkzy6OUHok2xHdNl4rZiEKBozXZzogwlZlDuW2E8HmQ OE0To3oqOSLw1JM56isFRg97OFTndlGvZUdYJEp5KOB/7bntjT3h1BEkW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="11167269" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="11167269" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="5329233" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.35.237]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 05:35:08 -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 Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com> Subject: [PATCH 1/4] MIPS: lantiq: Remove unused function pointer variables Date: Mon, 5 Feb 2024 15:34:47 +0200 Message-Id: <20240205133450.5222-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240205133450.5222-1-ilpo.jarvinen@linux.intel.com> References: <20240205133450.5222-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: 1790070959644015245 X-GMAIL-MSGID: 1790070959644015245 |
Series |
MIPS: Cleanups to PCI related code
|
|
Commit Message
Ilpo Järvinen
Feb. 5, 2024, 1:34 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; }