diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2019-01-02 00:00:01 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-01-10 13:39:18 +0200 |
commit | 5a1c18b761ddb299a06746948b9ec2814b04fa92 (patch) | |
tree | 163725e7719d68dab4ad9cb52d6f060177e45b59 /drivers/bcma/bcma_private.h | |
parent | 7fdcb8e1266093eb2ff1bc3ab430daf4775388ad (diff) | |
download | linux-5a1c18b761ddb299a06746948b9ec2814b04fa92.tar.bz2 |
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/bcma_private.h')
-rw-r--r-- | drivers/bcma/bcma_private.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h index a4aac370f21f..1f0e66310b23 100644 --- a/drivers/bcma/bcma_private.h +++ b/drivers/bcma/bcma_private.h @@ -33,7 +33,6 @@ int __init bcma_bus_early_register(struct bcma_bus *bus); int bcma_bus_suspend(struct bcma_bus *bus); int bcma_bus_resume(struct bcma_bus *bus); #endif -struct device *bcma_bus_get_host_dev(struct bcma_bus *bus); /* scan.c */ void bcma_detect_chip(struct bcma_bus *bus); |