diff options
author | Joachim Eastwood <manabian@gmail.com> | 2015-07-22 18:10:37 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2015-07-22 19:10:09 -0400 |
commit | 0ff818eff55aa80cb00bb3d89e824dd568d5a7f8 (patch) | |
tree | 6cc786c65c2fc7ed7e4f8d342aae537850357e50 | |
parent | 18eb5e9fb2936cb5d4b6899a102e97d84547f2f5 (diff) |
memory: pl172: fix modular build
Building pl172 as a module fails with:
> ERROR: "of_default_bus_match_table" [drivers/memory/pl172.ko] undefined!
Because the symbol of_default_bus_match_table isn't exported by the OF
core code so can't be referenced from modules. Fix this by removing
the usage of of_default_bus_match_table for now. The side effect of
this is that child nodes can't use "simple-bus" or "simple-mfd".
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | drivers/memory/pl172.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/memory/pl172.c b/drivers/memory/pl172.c index 3a8e57ee96f0..b2ef6072fbf4 100644 --- a/drivers/memory/pl172.c +++ b/drivers/memory/pl172.c | |||
@@ -255,8 +255,7 @@ static int pl172_probe(struct amba_device *adev, const struct amba_id *id) | |||
255 | if (ret) | 255 | if (ret) |
256 | continue; | 256 | continue; |
257 | 257 | ||
258 | of_platform_populate(child_np, of_default_bus_match_table, | 258 | of_platform_populate(child_np, NULL, NULL, dev); |
259 | NULL, dev); | ||
260 | } | 259 | } |
261 | 260 | ||
262 | return 0; | 261 | return 0; |