dde_linux: iterate over device names not types

To clearly identify the correct device use the unique device's name
not the type. Otherwise a driver cannot drive several devices of the
same type.

Fix #4297
This commit is contained in:
Stefan Kalkowski 2021-10-12 13:35:54 +02:00 committed by Norman Feske
parent 98400a68c9
commit c976a1d7e0

View File

@ -173,7 +173,7 @@ void Device::enable()
if (_pdev.constructed())
return;
_pdev.construct(_platform, _type);
_pdev.construct(_platform, _name);
_platform.update();
_platform.with_xml([&] (Xml_node & xml) {