Merge tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull Devicetree updates from Rob Herring: "A bit bigger than normal as I've been busy this cycle. There's a few things with dependencies and a few things subsystem maintainers didn't pick up, so I'm taking them thru my tree. The fixes from Johan didn't get into linux-next, but they've been waiting for some time now and they are what's left of what subsystem maintainers didn't pick up. Summary: - Sync dtc with upstream version v1.4.7-14-gc86da84d30e4 - Work to get rid of direct accesses to struct device_node name and type pointers in preparation for removing them. New helpers for parsing DT cpu nodes and conversions to use the helpers. printk conversions to %pOFn for printing DT node names. Most went thru subystem trees, so this is the remainder. - Fixes to DT child node lookups to actually be restricted to child nodes instead of treewide. - Refactoring of dtb targets out of arch code. This makes the support more uniform and enables building all dtbs on c6x, microblaze, and powerpc. - Various DT binding updates for Renesas r8a7744 SoC - Vendor prefixes for Facebook, OLPC - Restructuring of some ARM binding docs moving some peripheral bindings out of board/SoC binding files - New "secure-chosen" binding for secure world settings on ARM - Dual licensing of 2 DT IRQ binding headers" * tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (78 commits) ARM: dt: relicense two DT binding IRQ headers power: supply: twl4030-charger: fix OF sibling-node lookup NFC: nfcmrvl_uart: fix OF child-node lookup net: stmmac: dwmac-sun8i: fix OF child-node lookup net: bcmgenet: fix OF child-node lookup drm/msm: fix OF child-node lookup drm/mediatek: fix OF sibling-node lookup of: Add missing exports of node name compare functions dt-bindings: Add OLPC vendor prefix dt-bindings: misc: bk4: Add device tree binding for Liebherr's BK4 SPI bus dt-bindings: thermal: samsung: Add SPDX license identifier dt-bindings: clock: samsung: Add SPDX license identifiers dt-bindings: timer: ostm: Add R7S9210 support dt-bindings: phy: rcar-gen2: Add r8a7744 support dt-bindings: can: rcar_can: Add r8a7744 support dt-bindings: timer: renesas, cmt: Document r8a7744 CMT support dt-bindings: watchdog: renesas-wdt: Document r8a7744 support dt-bindings: thermal: rcar: Add device tree support for r8a7744 Documentation: dt: Add binding for /secure-chosen/stdout-path dt-bindings: arm: zte: Move sysctrl bindings to their own doc ...
This commit is contained in:
@@ -706,8 +706,8 @@ static int parse_mc_ranges(struct device *dev,
|
||||
*ranges_start = of_get_property(mc_node, "ranges", &ranges_len);
|
||||
if (!(*ranges_start) || !ranges_len) {
|
||||
dev_warn(dev,
|
||||
"missing or empty ranges property for device tree node '%s'\n",
|
||||
mc_node->name);
|
||||
"missing or empty ranges property for device tree node '%pOFn'\n",
|
||||
mc_node);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -730,7 +730,7 @@ static int parse_mc_ranges(struct device *dev,
|
||||
|
||||
tuple_len = range_tuple_cell_count * sizeof(__be32);
|
||||
if (ranges_len % tuple_len != 0) {
|
||||
dev_err(dev, "malformed ranges property '%s'\n", mc_node->name);
|
||||
dev_err(dev, "malformed ranges property '%pOFn'\n", mc_node);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@@ -1229,7 +1229,7 @@ mbus_parse_ranges(struct device_node *node,
|
||||
tuple_len = (*cell_count) * sizeof(__be32);
|
||||
|
||||
if (ranges_len % tuple_len) {
|
||||
pr_warn("malformed ranges entry '%s'\n", node->name);
|
||||
pr_warn("malformed ranges entry '%pOFn'\n", node);
|
||||
return -EINVAL;
|
||||
}
|
||||
return 0;
|
||||
|
مرجع در شماره جدید
Block a user