From patchwork Tue Mar 14 19:08:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9624331 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5991260244 for ; Tue, 14 Mar 2017 19:09:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CB9328113 for ; Tue, 14 Mar 2017 19:09:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4159328583; Tue, 14 Mar 2017 19:09:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D0EDA28113 for ; Tue, 14 Mar 2017 19:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=9b88VP95Pk1rV874X1ovTLgs8YcoaWQSW90F9OmF+oc=; b=A5q r9/6RMEBc/+KFy9mJUQJ/2I+s+yPGhcyDu3hBiA+7DM8QJjcgsygxqT5fB7D5yGussqUtAUslttv5 9RzZyd2OgtTMLwqji5Gy5aovaub1POFLXC3UdqbePLzY28euNPPaxFOhDxlCFmBKG/tQdpBCH+XHP VjfmUdOn2vBTPFaTu5PmyKvxoRYVHb+crwbMkdktcZUvnIi8cMsinYbvoT12Q7wTdieGBbSr9fXJC cmjl18am6pKniAOrqXPlFsRJmPSPBBJah+kl4K4sCdoEt7Tkeeh6LdqXf0HBdN2fLsZO8XTn95VRv DnDexS4jVQL92Fv/BrVStVwUF6bwzvA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cnrot-00035p-HY; Tue, 14 Mar 2017 19:09:19 +0000 Received: from mail-pg0-x22d.google.com ([2607:f8b0:400e:c05::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnrop-00032Q-H9 for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2017 19:09:18 +0000 Received: by mail-pg0-x22d.google.com with SMTP id n190so6134279pga.0 for ; Tue, 14 Mar 2017 12:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=w5/Vuctr6AEThPzdcr4NISu8mJwt5AvyUcnjEKot/iA=; b=WG9uu77NeT1wQKTe4guKdD934WLdQRlNUYBOEX79EQL9zjO0bH4/PBjdvjiXwpAfKG oBcrFuWjMUrt5CVNZGS1+O5CcG6wKcE2PCdQDPdcKdjoPdO5j7g66jHgWfOmtt/tmb51 UNEfg927qXJH7D/wmJe3xW3+0MJMAlheVT7qk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=w5/Vuctr6AEThPzdcr4NISu8mJwt5AvyUcnjEKot/iA=; b=j47DX0rK6ErN+kLmSg9pstYf9ofJkxF01RklF+20Fhc7Qbdbp0aZp+Bk8rzshKru2h zdi/6kncvGT1AmiJfNg+HPNLtB//3vBurwwahz5oDVeh07KDZiA04dWkGrXOuDclixpw gbR9zaSwW+UeZMsOo2Ae0q5Ikxt/obSVyfioqKHkC8yDuTiAfopPy+4Y7JVKnPVRiOcR gSm5XskjqWU6FoKT6RfynOQTyfqoxz2IYsUjZM3L7xQfLutpnpinEE0d+Z14KIRUWBTg UWTyUTgzGcK32AXZjvbX2CkyATIoDdKFSea3d5OKcTwRrM4HfckkjvQ9dxYd4tBVVKoq c7jA== X-Gm-Message-State: AMke39njbd4jsVFxwQCg9y+iH7sAbVadJpVW/Q5GyYWVDpKYyjPVeCpcvyGrKrSseINwEFFW X-Received: by 10.98.85.1 with SMTP id j1mr46053360pfb.23.1489518533342; Tue, 14 Mar 2017 12:08:53 -0700 (PDT) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 74sm40210911pge.14.2017.03.14.12.08.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Mar 2017 12:08:52 -0700 (PDT) From: Stephen Boyd To: Bjorn Helgaas Subject: [PATCH] PCI: aardvark: Remove msi-controller dt node probing Date: Tue, 14 Mar 2017 12:08:51 -0700 Message-Id: <20170314190851.28203-1-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170314_120915_839087_786250CF X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Petazzoni , linux-pci@vger.kernel.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This code assigns variables that are never used. Remove them. Reported-by: Srinivas Kandagatla Cc: Thomas Petazzoni Signed-off-by: Stephen Boyd --- drivers/pci/host/pci-aardvark.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/host/pci-aardvark.c b/drivers/pci/host/pci-aardvark.c index 4fce494271cc..56e1aead65fc 100644 --- a/drivers/pci/host/pci-aardvark.c +++ b/drivers/pci/host/pci-aardvark.c @@ -917,8 +917,6 @@ static int advk_pcie_probe(struct platform_device *pdev) struct advk_pcie *pcie; struct resource *res; struct pci_bus *bus, *child; - struct msi_controller *msi; - struct device_node *msi_node; int ret, irq; pcie = devm_kzalloc(dev, sizeof(struct advk_pcie), GFP_KERNEL); @@ -962,12 +960,6 @@ static int advk_pcie_probe(struct platform_device *pdev) return ret; } - msi_node = of_parse_phandle(dev->of_node, "msi-parent", 0); - if (msi_node) - msi = of_pci_find_msi_chip_by_node(msi_node); - else - msi = NULL; - bus = pci_scan_root_bus_msi(dev, 0, &advk_pcie_ops, pcie, &pcie->resources, &pcie->msi); if (!bus) {