diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-10-16 12:15:37 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-18 09:02:24 +0200 |
commit | f16af961993a7af3cf9361c4fe0cb56eb499e518 (patch) | |
tree | f873dfd795f0678763636fc0c17e29b94bc56fc8 /drivers/aiodev/core.c | |
parent | 68b65dcedf8f3f9c75d5c5c37606feabaed6855c (diff) | |
download | barebox-f16af961993a7af3cf9361c4fe0cb56eb499e518.tar.gz barebox-f16af961993a7af3cf9361c4fe0cb56eb499e518.tar.xz |
aiodev: Don't try to use DT node name as aiodev->name
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 <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/aiodev/core.c')
-rw-r--r-- | drivers/aiodev/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/aiodev/core.c b/drivers/aiodev/core.c index 79f935d710..90df8a6e7c 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) { |