Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / drivers / base / core.c
index b4c64528f13ccab74f5933b89bf718a88e490045..da84a73f2ba63b6ecfa6d84483770ceb32db0e93 100644 (file)
@@ -3356,3 +3356,9 @@ void device_set_of_node_from_dev(struct device *dev, const struct device *dev2)
        dev->of_node_reused = true;
 }
 EXPORT_SYMBOL_GPL(device_set_of_node_from_dev);
+
+int device_match_of_node(struct device *dev, const void *np)
+{
+       return dev->of_node == np;
+}
+EXPORT_SYMBOL_GPL(device_match_of_node);