]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/base/core.c
of: wrap accesses to device_node kobject
authorRob Herring <robh@kernel.org>
Wed, 4 Oct 2017 19:04:01 +0000 (14:04 -0500)
committerRob Herring <robh@kernel.org>
Mon, 16 Oct 2017 18:37:38 +0000 (13:37 -0500)
commit0c3c234b95fa7f1dfa19e1456a47ebafc300dd6b
treebd88c75e9101be4897e70d8e990b400776c69638
parent4c2bb57400394e4ec631a42dcf637e925db6202e
of: wrap accesses to device_node kobject

In preparation to make kobject element in struct device_node optional,
provide and use a macro to return the kobject pointer. The only user
outside the DT core is the driver core.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Tested-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/base/core.c
include/linux/of.h