From: Bjorn Helgaas <bhelgaas@google.com>
To: Duc Dang <dhdang@apm.com>, Tanmay Inamdar <tinamdar@apm.com>
Cc: linux-pci@vger.kernel.org
Subject: [PATCH v2 2/4] PCI: xgene: Remove unused platform data
Date: Wed, 12 Oct 2016 08:07:51 -0500 [thread overview]
Message-ID: <20161012130751.25368.87882.stgit@bhelgaas-glaptop2.roam.corp.google.com> (raw)
In-Reply-To: <20161012130508.25368.95560.stgit@bhelgaas-glaptop2.roam.corp.google.com>
The xgene driver never uses the platform drvdata pointer, so don't
bother setting it. No functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
drivers/pci/host/pci-xgene.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c
index 03d24e7..7da3b09 100644
--- a/drivers/pci/host/pci-xgene.c
+++ b/drivers/pci/host/pci-xgene.c
@@ -563,8 +563,6 @@ static int xgene_pcie_probe_bridge(struct platform_device *pdev)
pci_scan_child_bus(bus);
pci_assign_unassigned_bus_resources(bus);
pci_bus_add_devices(bus);
-
- platform_set_drvdata(pdev, port);
return 0;
error:
next prev parent reply other threads:[~2016-10-12 13:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 13:07 [PATCH v2 0/4] PCI: xgene: Cleanups Bjorn Helgaas
2016-10-12 13:07 ` [PATCH v2 1/4] PCI: xgene: Add local struct device pointers Bjorn Helgaas
2016-10-12 13:07 ` Bjorn Helgaas [this message]
2016-10-12 13:07 ` [PATCH v2 3/4] PCI: xgene: Pass struct xgene_pcie_port to setup functions Bjorn Helgaas
2016-10-12 13:08 ` [PATCH v2 4/4] PCI: xgene: Add register accessors Bjorn Helgaas
2016-10-12 16:03 ` [PATCH v2 0/4] PCI: xgene: Cleanups Bjorn Helgaas
2016-10-12 23:20 ` Duc Dang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161012130751.25368.87882.stgit@bhelgaas-glaptop2.roam.corp.google.com \
--to=bhelgaas@google.com \
--cc=dhdang@apm.com \
--cc=linux-pci@vger.kernel.org \
--cc=tinamdar@apm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox