diff options
author | Rob Herring <robh@kernel.org> | 2014-05-07 15:17:26 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2014-05-13 14:11:09 -0500 |
commit | b8acee3ef83f0fc50e57a3d4c91234982befda95 (patch) | |
tree | 85e9ed42b391e329b68020307736dcf3f7a136be /drivers/of/address.c | |
parent | d6d211db37e75de2ddc3a4f979038c40df7cc79c (diff) | |
download | linux-b8acee3ef83f0fc50e57a3d4c91234982befda95.tar.gz linux-b8acee3ef83f0fc50e57a3d4c91234982befda95.tar.bz2 linux-b8acee3ef83f0fc50e57a3d4c91234982befda95.zip |
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>
Diffstat (limited to 'drivers/of/address.c')
0 files changed, 0 insertions, 0 deletions