From 508438a0c5e848f64589e87ffc1e58c3f15bc607 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Wed, 13 Dec 2023 19:56:02 -0800 Subject: [PATCH] Fix using `devRoot` on Tegra platforms Using `WithDevRoot` on Tegra platforms was incorrectly setting `driverRoot`, fix it so that it correctly sets `devRoot`. Signed-off-by: Jared Baur --- internal/platform-support/tegra/tegra.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/platform-support/tegra/tegra.go b/internal/platform-support/tegra/tegra.go index 6fb42674..37a8af72 100644 --- a/internal/platform-support/tegra/tegra.go +++ b/internal/platform-support/tegra/tegra.go @@ -119,9 +119,9 @@ func WithDriverRoot(driverRoot string) Option { // WithDevRoot sets the /dev root. // If this is unset, the driver root is assumed. -func WithDevRoot(driverRoot string) Option { +func WithDevRoot(devRoot string) Option { return func(o *tegraOptions) { - o.driverRoot = driverRoot + o.devRoot = devRoot } }