aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-03-28 21:20:43 -0600
committerGrant Likely <grant.likely@secretlab.ca>2011-03-28 21:20:43 -0600
commite0ceac7b1e4b89519b8bfd711b128560a5b2deea (patch)
tree3465dea4d72ee4ccfca231158b63646a2c2299cf /include/linux
parent1a16467e29a975f4dda1ccd3c6d12f9bea150743 (diff)
dt: eliminate OF_NO_DEEP_PROBE and test for NULL match table
There are no users of OF_NO_DEEP_PROBE, and of_match_node() now gracefully handles being passed a NULL pointer, so the checks at the top of of_platform_bus_probe can be dropped. While at it, consolidate the root node pointer check to be easier to read and tidy up related comments. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of_platform.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index a68716ad38c..acb65bc2489 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -68,9 +68,6 @@ extern struct platform_device *of_platform_device_create(struct device_node *np,
const char *bus_id,
struct device *parent);
-/* pseudo "matches" value to not do deep probe */
-#define OF_NO_DEEP_PROBE ((struct of_device_id *)-1)
-
extern int of_platform_bus_probe(struct device_node *root,
const struct of_device_id *matches,
struct device *parent);