diff --git a/devices/common/viacuda.cpp b/devices/common/viacuda.cpp
index 69232d1..90c1fc4 100644
--- a/devices/common/viacuda.cpp
+++ b/devices/common/viacuda.cpp
@@ -26,6 +26,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
#include
#include
#include
@@ -709,3 +710,9 @@ void ViaCuda::i2c_comb_transaction(
this->is_open_ended = true;
}
}
+
+static const DeviceDescription ViaCuda_Descriptor = {
+ ViaCuda::create, {}, {}
+};
+
+REGISTER_DEVICE(ViaCuda, ViaCuda_Descriptor);
diff --git a/devices/common/viacuda.h b/devices/common/viacuda.h
index d76fede..4be9268 100644
--- a/devices/common/viacuda.h
+++ b/devices/common/viacuda.h
@@ -156,6 +156,10 @@ public:
ViaCuda();
~ViaCuda() = default;
+ static std::unique_ptr create() {
+ return std::unique_ptr(new ViaCuda());
+ }
+
// HWComponent methods
int device_postinit();