[tee][vim2] Remove TEE device from VIM2
This was a temporary hack to enable TEE driver development on VIM2 until
we had another board to work on. It has been long overdue for removal.
Test: Booted VIM2 and validated that there was no more error message for
failing to start TEE.
Change-Id: I9915327eb2f8a80d229816544dc15fd4c7cf067a
diff --git a/system/dev/board/vim/vim.c b/system/dev/board/vim/vim.c
index 2ee701f..2beadc3 100644
--- a/system/dev/board/vim/vim.c
+++ b/system/dev/board/vim/vim.c
@@ -38,14 +38,6 @@
.release = vim_bus_release,
};
-// TODO(rjascani): Remove this when not needed for testing any longer
-static const pbus_dev_t tee_dev = {
- .name = "tee",
- .vid = PDEV_VID_GENERIC,
- .pid = PDEV_PID_GENERIC,
- .did = PDEV_DID_OPTEE,
-};
-
static int vim_start_thread(void* arg) {
vim_bus_t* bus = arg;
zx_status_t status;
@@ -110,10 +102,6 @@
if ((status = vim_led2472g_init(bus)) != ZX_OK) {
zxlogf(ERROR, "vim_led2472g_init failed: %d\n", status);
}
- // TODO(rjascani): Remove this when not needed for testing any longer
- if ((status = pbus_device_add(&bus->pbus, &tee_dev)) != ZX_OK) {
- zxlogf(ERROR, "vim_start_thread, could not add tee_dev: %d\n", status);
- }
if ((status = vim_rtc_init(bus)) != ZX_OK) {
zxlogf(ERROR, "vim_rtc_init failed: %d\n", status);
}