summaryrefslogtreecommitdiffstats
path: root/drivers/base/property.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/property.c')
-rw-r--r--drivers/base/property.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/base/property.c b/drivers/base/property.c
index 1d0b116cae95..e645852396ba 100644
--- a/drivers/base/property.c
+++ b/drivers/base/property.c
@@ -14,6 +14,7 @@
14#include <linux/export.h> 14#include <linux/export.h>
15#include <linux/kernel.h> 15#include <linux/kernel.h>
16#include <linux/of.h> 16#include <linux/of.h>
17#include <linux/of_address.h>
17#include <linux/property.h> 18#include <linux/property.h>
18 19
19/** 20/**
@@ -519,3 +520,16 @@ unsigned int device_get_child_node_count(struct device *dev)
519 return count; 520 return count;
520} 521}
521EXPORT_SYMBOL_GPL(device_get_child_node_count); 522EXPORT_SYMBOL_GPL(device_get_child_node_count);
523
524bool device_dma_is_coherent(struct device *dev)
525{
526 bool coherent = false;
527
528 if (IS_ENABLED(CONFIG_OF) && dev->of_node)
529 coherent = of_dma_is_coherent(dev->of_node);
530 else
531 acpi_check_dma(ACPI_COMPANION(dev), &coherent);
532
533 return coherent;
534}
535EXPORT_SYMBOL_GPL(device_dma_is_coherent);