diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-28 20:21:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-28 20:21:41 -0400 |
commit | 0a07b238e5f488b459b6113a62e06b6aab017f71 (patch) | |
tree | dd975c0f0f8b04fee87ae2541e8ac66c21421749 | |
parent | 286ba844c59bf0deebc25119f48e00a9ae54efb9 (diff) | |
parent | 531da74075a7805768ce3cd323e37e3548cbf6c5 (diff) |
Merge tag 'devicetree-fixes-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull DeviceTree fixes from Rob Herring:
"Two small DT fixes:
- Fix error handling in of_irq_to_resource_table() due to
of_irq_to_resource() error return changes.
- Fix dtx_diff script due to dts include path changes"
* tag 'devicetree-fixes-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
of: irq: fix of_irq_to_resource() error check
scripts/dtc: dtx_diff - update include dts paths to match build
-rw-r--r-- | drivers/of/irq.c | 2 | ||||
-rwxr-xr-x | scripts/dtc/dtx_diff | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 6ce72aa65425..ab21c846eb27 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c | |||
@@ -476,7 +476,7 @@ int of_irq_to_resource_table(struct device_node *dev, struct resource *res, | |||
476 | int i; | 476 | int i; |
477 | 477 | ||
478 | for (i = 0; i < nr_irqs; i++, res++) | 478 | for (i = 0; i < nr_irqs; i++, res++) |
479 | if (!of_irq_to_resource(dev, i, res)) | 479 | if (of_irq_to_resource(dev, i, res) <= 0) |
480 | break; | 480 | break; |
481 | 481 | ||
482 | return i; | 482 | return i; |
diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff index fb86f3899e16..f9a3d8d23c64 100755 --- a/scripts/dtc/dtx_diff +++ b/scripts/dtc/dtx_diff | |||
@@ -321,7 +321,7 @@ fi | |||
321 | cpp_flags="\ | 321 | cpp_flags="\ |
322 | -nostdinc \ | 322 | -nostdinc \ |
323 | -I${srctree}/arch/${ARCH}/boot/dts \ | 323 | -I${srctree}/arch/${ARCH}/boot/dts \ |
324 | -I${srctree}/arch/${ARCH}/boot/dts/include \ | 324 | -I${srctree}/scripts/dtc/include-prefixes \ |
325 | -I${srctree}/drivers/of/testcase-data \ | 325 | -I${srctree}/drivers/of/testcase-data \ |
326 | -undef -D__DTS__" | 326 | -undef -D__DTS__" |
327 | 327 | ||