projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445f824
)
devres: use to_pci_dev()
author
Geliang Tang
<geliangtang@163.com>
Sun, 27 Dec 2015 10:46:05 +0000
(18:46 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 07:17:59 +0000
(23:17 -0800)
Use to_pci_dev() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/devres.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/devres.c
b/lib/devres.c
index 8c85672639d3e08aa6e9cdf88b545ba273baaac2..cb1464c411a2b4fa88778343bf33208ccd8dae76 100644
(file)
--- a/
lib/devres.c
+++ b/
lib/devres.c
@@
-236,7
+236,7
@@
struct pcim_iomap_devres {
static void pcim_iomap_release(struct device *gendev, void *res)
{
- struct pci_dev *dev =
container_of(gendev, struct pci_dev,
dev);
+ struct pci_dev *dev =
to_pci_dev(gen
dev);
struct pcim_iomap_devres *this = res;
int i;