of: device: Ignore modalias of reused nodes
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 7 Feb 2023 11:05:29 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 11:13:55 +0000 (12:13 +0100)
commit553bd29700145e1849698985e9800f14e967da49
tree2c662131f2f8a1faa10faf214194d0a823f3fd31
parent8488a831e0c4d59528d20713a14cb8958af15bfe
of: device: Ignore modalias of reused nodes

If of_node is reused, do not use that node's modalias. This will hide
the name of the actual device. This is rather prominent in USB glue
drivers creating a platform device for the host controller.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230207110531.1060252-2-alexander.stein@ew.tq-group.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/device.c