Don't try to use DT node name as aiodev->name in aiodev_regster()
since, for some devices (e. g. tempmon) than name would already be
taken by parent platform device.

Signed-off-by: Andrey Smirnov <[email protected]>
---
 drivers/aiodev/core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/aiodev/core.c b/drivers/aiodev/core.c
index 79f935d71..90df8a6e7 100644
--- a/drivers/aiodev/core.c
+++ b/drivers/aiodev/core.c
@@ -106,8 +106,6 @@ int aiodevice_register(struct aiodevice *aiodev)
                aiodev->dev.id = DEVICE_ID_SINGLE;
 
                aiodev->name = of_alias_get(aiodev->hwdev->device_node);
-               if (!aiodev->name)
-                       aiodev->name = aiodev->hwdev->device_node->name;
        }
 
        if (!aiodev->name) {
-- 
2.17.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to