diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-06 21:36:08 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-12 06:28:01 +0300 |
commit | 786aeccb4ac65b2071d2f790b4957819c389c9a9 (patch) | |
tree | e58ed4dbf7347dfa54e5ed1720efaf7c3efdfd10 /drivers/pci/host/pcie-iproc-bcma.c | |
parent | bdf530984d10b6b88b10a6d03057409a3f1c6897 (diff) | |
download | linux-786aeccb4ac65b2071d2f790b4957819c389c9a9.tar.xz |
PCI: iproc: Add local struct device pointers
Use a local "struct device *dev" for brevity and consistency with other
drivers. No functional change intended.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/host/pcie-iproc-bcma.c')
-rw-r--r-- | drivers/pci/host/pcie-iproc-bcma.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-iproc-bcma.c b/drivers/pci/host/pcie-iproc-bcma.c index 0d7bee4a0d26..94d1101fbf8d 100644 --- a/drivers/pci/host/pcie-iproc-bcma.c +++ b/drivers/pci/host/pcie-iproc-bcma.c @@ -42,16 +42,17 @@ static int iproc_pcie_bcma_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) static int iproc_pcie_bcma_probe(struct bcma_device *bdev) { + struct device *dev = &bdev->dev; struct iproc_pcie *pcie; LIST_HEAD(res); struct resource res_mem; int ret; - pcie = devm_kzalloc(&bdev->dev, sizeof(*pcie), GFP_KERNEL); + pcie = devm_kzalloc(dev, sizeof(*pcie), GFP_KERNEL); if (!pcie) return -ENOMEM; - pcie->dev = &bdev->dev; + pcie->dev = dev; bcma_set_drvdata(bdev, pcie); pcie->base = bdev->io_addr; @@ -67,7 +68,7 @@ static int iproc_pcie_bcma_probe(struct bcma_device *bdev) ret = iproc_pcie_setup(pcie, &res); if (ret) - dev_err(pcie->dev, "PCIe controller setup failed\n"); + dev_err(dev, "PCIe controller setup failed\n"); pci_free_resource_list(&res); |