1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

apply driver refactor

Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
Pascal Bauer 2024-10-11 15:18:18 +02:00 committed by Niklas Eiling
parent 9898d98c80
commit 00f28582d8

View file

@ -18,10 +18,9 @@
#include <villas/config.hpp>
#include <villas/exceptions.hpp>
#include <villas/kernel/devices/generic_driver.hpp>
#include <villas/kernel/devices/linux_driver.hpp>
#include <villas/kernel/devices/pci_device.hpp>
#include <villas/utils.hpp>
#include <villas/utils.hpp>
using namespace villas::kernel::devices;
using villas::utils::write_to_file;
@ -331,7 +330,7 @@ std::optional<std::unique_ptr<Driver>> PciDevice::driver() const {
if (ret < 0)
throw SystemError("Failed to follow link: {}", sysfs);
auto driver = std::make_optional(std::make_unique<GenericDriver>(
auto driver = std::make_optional(std::make_unique<LinuxDriver>(
"/sys/bus/pci/drivers/" + std::string(basename(syml))));
return driver;
}