aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_platform.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-03-18 12:21:29 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-03-23 16:55:56 -0400
commit1eed4c077c31450bfcd0249aebb21d96fc5d5d3c (patch)
treea5d7117d36989ea86b121ed53f711bfcbbbf8bd8 /include/linux/of_platform.h
parenta52f07ecd143baee51623b063be5007585748a4f (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/of_platform.h')
-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 17c7e21c0bd7..fb51ae38cea7 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -52,9 +52,6 @@ extern struct platform_device *of_platform_device_create(struct device_node *np,
52 const char *bus_id, 52 const char *bus_id,
53 struct device *parent); 53 struct device *parent);
54 54
55/* pseudo "matches" value to not do deep probe */
56#define OF_NO_DEEP_PROBE ((struct of_device_id *)-1)
57
58extern int of_platform_bus_probe(struct device_node *root, 55extern int of_platform_bus_probe(struct device_node *root,
59 const struct of_device_id *matches, 56 const struct of_device_id *matches,
60 struct device *parent); 57 struct device *parent);