Skip to content

Commit 8b583c2

Browse files
apply driver refactor
Signed-off-by: Pascal Bauer <[email protected]>
1 parent bfa4745 commit 8b583c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

common/lib/kernel/devices/pci_device.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818

1919
#include <villas/config.hpp>
2020
#include <villas/exceptions.hpp>
21-
#include <villas/kernel/devices/generic_driver.hpp>
21+
#include <villas/kernel/devices/linux_driver.hpp>
2222
#include <villas/kernel/devices/pci_device.hpp>
2323
#include <villas/utils.hpp>
24-
#include <villas/utils.hpp>
2524

2625
using namespace villas::kernel::devices;
2726
using villas::utils::write_to_file;
@@ -331,7 +330,7 @@ std::optional<std::unique_ptr<Driver>> PciDevice::driver() const {
331330
if (ret < 0)
332331
throw SystemError("Failed to follow link: {}", sysfs);
333332

334-
auto driver = std::make_optional(std::make_unique<GenericDriver>(
333+
auto driver = std::make_optional(std::make_unique<LinuxDriver>(
335334
"/sys/bus/pci/drivers/" + std::string(basename(syml))));
336335
return driver;
337336
}

0 commit comments

Comments
 (0)