summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/octopus/mainboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c
index 61d254ee5a..6effa7c080 100644
--- a/src/mainboard/google/octopus/mainboard.c
+++ b/src/mainboard/google/octopus/mainboard.c
@@ -169,7 +169,8 @@ static void wifi_device_update(void)
devfn = PCH_DEVFN_PCIE1;
dev = dev_find_slot(0, devfn);
- dev->enabled = 0;
+ if (dev)
+ dev->enabled = 0;
}
void mainboard_devtree_update(struct device *dev)