aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/npu2-common.c')
-rw-r--r--hw/npu2-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/npu2-common.c b/hw/npu2-common.c
index 9e392b8..6e6b12f 100644
--- a/hw/npu2-common.c
+++ b/hw/npu2-common.c
@@ -144,8 +144,7 @@ void npu2_i2c_presence_detect(struct npu2 *npu)
assert(platform.ocapi);
for (int i = 0; i < npu->total_devices; i++) {
dev = &npu->devices[i];
- if (platform.ocapi->force_presence ||
- _i2c_presence_detect(dev))
+ if (_i2c_presence_detect(dev))
dev->type = NPU2_DEV_TYPE_OPENCAPI;
else
dev->type = NPU2_DEV_TYPE_UNKNOWN;