]> git.baikalelectronics.ru Git - kernel.git/commit
of/platform: fix device naming for non-translatable addresses
authorRob Herring <robh@kernel.org>
Wed, 7 May 2014 20:17:26 +0000 (15:17 -0500)
committerRob Herring <robh@kernel.org>
Tue, 13 May 2014 19:11:09 +0000 (14:11 -0500)
commit26a935e6f627478276abc7ea21be307dc45e5213
tree85e9ed42b391e329b68020307736dcf3f7a136be
parent53e5313673903082e1a4b63bd6c576867a14921f
of/platform: fix device naming for non-translatable addresses

Using non-translatable addresses in platform device names is wrong
because they may not be globally unique. Just use the default naming with
a global index if the address cannot be translated instead.

of_can_translate_address has the same checks as of_translate_address, so
we can remove it here as well.

Reported-by: "Ivan T. Ivanov" <iivanov@mm-sol.com>
Cc: Josh Cartwright <joshc@codeaurora.org>
Cc: Courtney Cavin <courtney.cavin@sonymobile.com>
Cc: Bjorn Andersson <bjorn@kryo.se>
Cc: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Tested-by: Frank Rowand <frank.rowand@sonymobile.com>
Reviewed-by: Frank Rowand <frank.rowand@sonymobile.com>
drivers/of/platform.c