]> git.baikalelectronics.ru Git - kernel.git/commit
tee: optee: Fix missing devices unregister during optee_remove
authorSumit Garg <sumit.garg@linaro.org>
Tue, 12 Oct 2021 07:31:16 +0000 (13:01 +0530)
committerJens Wiklander <jens.wiklander@linaro.org>
Tue, 12 Oct 2021 11:24:39 +0000 (13:24 +0200)
commit7f565d0ead264329749c0da488de9c8dfa2f18ce
tree410eb93c70eb4f28f02190d0b656a860492b2262
parent88a3856c0a8c03188db7913f4d49379432fe1f93
tee: optee: Fix missing devices unregister during optee_remove

When OP-TEE driver is built as a module, OP-TEE client devices
registered on TEE bus during probe should be unregistered during
optee_remove. So implement optee_unregister_devices() accordingly.

Fixes: c3fa24af9244 ("tee: optee: add TEE bus device enumeration support")
Reported-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c
drivers/tee/optee/device.c
drivers/tee/optee/optee_private.h