diff options
author | Jonas Bonn <jonas@southpole.se> | 2010-07-23 14:19:24 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-24 11:58:22 -0400 |
commit | c0dd394ca5e78649b7013c3ce2d6338af9f228f0 (patch) | |
tree | ed1702f29368675d22fd31a7b00497674011e179 /drivers/of | |
parent | c608558407aa64d2b98d58bfc116e95c0afb357e (diff) |
of: remove of_default_bus_ids
This list used was by only two platforms with all other platforms defining an
own list of valid bus id's to pass to of_platform_bus_probe. This patch:
i) copies the default list to the two platforms that depended on it (powerpc)
ii) remove the usage of of_default_bus_ids in of_platform_bus_probe
iii) removes the definition of the list from all architectures that defined it
Passing a NULL 'matches' parameter to of_platform_bus_probe is still valid; the
function returns no error in that case as the NULL value is equivalent to an
empty list.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
[grant.likely@secretlab.ca: added __initdata annotations, warn on and return error on missing match table, and fix whitespace errors]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/platform.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index f79f40b516c6..033a224a9fda 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c | |||
@@ -701,9 +701,7 @@ int of_platform_bus_probe(struct device_node *root, | |||
701 | struct platform_device *dev; | 701 | struct platform_device *dev; |
702 | int rc = 0; | 702 | int rc = 0; |
703 | 703 | ||
704 | if (matches == NULL) | 704 | if (WARN_ON(!matches || matches == OF_NO_DEEP_PROBE)) |
705 | matches = of_default_bus_ids; | ||
706 | if (matches == OF_NO_DEEP_PROBE) | ||
707 | return -EINVAL; | 705 | return -EINVAL; |
708 | if (root == NULL) | 706 | if (root == NULL) |
709 | root = of_find_node_by_path("/"); | 707 | root = of_find_node_by_path("/"); |