summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/mipi_camera/camera.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/intel/mipi_camera/camera.c b/src/drivers/intel/mipi_camera/camera.c
index fed0ff6cba..d4cf33d9fb 100644
--- a/src/drivers/intel/mipi_camera/camera.c
+++ b/src/drivers/intel/mipi_camera/camera.c
@@ -452,11 +452,13 @@ static void camera_fill_sensor(const struct device *dev)
static void camera_fill_nvm(const struct device *dev)
{
struct drivers_intel_mipi_camera_config *config = dev->chip_info;
- struct acpi_dp *dsd = acpi_dp_new_table("_DSD");
+ struct acpi_dp *dsd;
if (!config->nvm_compat)
return;
+ dsd = acpi_dp_new_table("_DSD");
+
/* It might be possible to default size or width based on type. */
if (!config->disable_nvm_defaults && !config->nvm_pagesize)
config->nvm_pagesize = 1;