Skip to content

Commit

Permalink
apply driver refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Bauer <[email protected]>
  • Loading branch information
IgnoreWarnings committed Oct 11, 2024
1 parent bfa4745 commit 8b583c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/lib/kernel/devices/pci_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8b583c2

Please sign in to comment.