Skip to content

Commit

Permalink
memory: pl172: fix modular build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joachim Eastwood authored and Olof Johansson committed Jul 22, 2015
1 parent 18eb5e9 commit 0ff818e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/memory/pl172.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ static int pl172_probe(struct amba_device *adev, const struct amba_id *id)
if (ret)
continue;

of_platform_populate(child_np, of_default_bus_match_table,
NULL, dev);
of_platform_populate(child_np, NULL, NULL, dev);
}

return 0;
Expand Down

0 comments on commit 0ff818e

Please sign in to comment.