summaryrefslogtreecommitdiff
path: root/drivers/bcma/host_pci.c
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-01-02 00:00:01 +0100
committerKalle Valo <kvalo@codeaurora.org>2019-01-10 13:39:18 +0200
commit5a1c18b761ddb299a06746948b9ec2814b04fa92 (patch)
tree163725e7719d68dab4ad9cb52d6f060177e45b59 /drivers/bcma/host_pci.c
parent7fdcb8e1266093eb2ff1bc3ab430daf4775388ad (diff)
bcma: keep a direct pointer to the struct device
Accessing struct device is pretty useful/common so having a direct pointer: 1) Simplifies some code 2) Makes bcma_bus_get_host_dev() unneeded 3) Allows further improvements like using dev_* printing helpers Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/bcma/host_pci.c')
-rw-r--r--drivers/bcma/host_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c
index 63410ecfe640..f52239feb4cb 100644
--- a/drivers/bcma/host_pci.c
+++ b/drivers/bcma/host_pci.c
@@ -196,6 +196,8 @@ static int bcma_host_pci_probe(struct pci_dev *dev,
goto err_pci_release_regions;
}
+ bus->dev = &dev->dev;
+
/* Map MMIO */
err = -ENOMEM;
bus->mmio = pci_iomap(dev, 0, ~0UL);