projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'powerpc-4.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[platform/kernel/linux-starfive.git]
/
drivers
/
pci
/
hotplug
/
pnv_php.c
diff --git
a/drivers/pci/hotplug/pnv_php.c
b/drivers/pci/hotplug/pnv_php.c
index
335a556
..
7c20319
100644
(file)
--- a/
drivers/pci/hotplug/pnv_php.c
+++ b/
drivers/pci/hotplug/pnv_php.c
@@
-161,7
+161,7
@@
static void pnv_php_detach_device_nodes(struct device_node *parent)
pnv_php_detach_device_nodes(dn);
of_node_put(dn);
- refcount =
atomic_read(&dn->kobj.kref.refcount
);
+ refcount =
kref_read(&dn->kobj.kref
);
if (refcount != 1)
pr_warn("Invalid refcount %d on <%s>\n",
refcount, of_node_full_name(dn));