of/platform: Generalize /reserved-memory handling
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Oct 2017 05:08:53 +0000 (22:08 -0700)
committerAndy Gross <andy.gross@linaro.org>
Sun, 22 Oct 2017 10:06:33 +0000 (05:06 -0500)
commita50ff19d0658d8a09026158448894f06a4521f33
treef9f4927d4bb7dd10ea5cbcdce4abe8a0a4e61679
parent8c1b7dc9ba2294c6dbd1870a3d2e534bfda3047a
of/platform: Generalize /reserved-memory handling

By iterating over all /reserved-memory child nodes and match each one to
a list of compatibles that we want to treat specially, we can easily
extend the list of compatibles to handle - without having to resort to
of_platform_populate() that would create unnecessary platform_devices.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/of/platform.c