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:
parent
9898d98c80
commit
00f28582d8
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue