From c976a1d7e06034ed2626709346ff960f83dd110e Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Tue, 12 Oct 2021 13:35:54 +0200 Subject: [PATCH] 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 --- repos/dde_linux/src/lib/lx_kit/device.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/dde_linux/src/lib/lx_kit/device.cc b/repos/dde_linux/src/lib/lx_kit/device.cc index 52e57c6ca2..947f7f5c8e 100644 --- a/repos/dde_linux/src/lib/lx_kit/device.cc +++ b/repos/dde_linux/src/lib/lx_kit/device.cc @@ -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) {