]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tee: Add probe, remove and shutdown bus callbacks to tee_client_driver
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 15 Dec 2025 14:16:32 +0000 (15:16 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 17 Dec 2025 17:28:28 +0000 (18:28 +0100)
commit71a33465726e4125f5ef33705ce5bc7ec1bf5b1f
tree4e8bca6255f2ed5f8af17684e31e822fad31e71f
parenta707eda330b932bcf698be9460e54e2f389e24b7
tee: Add probe, remove and shutdown bus callbacks to tee_client_driver

Introduce a bus specific probe, remove and shutdown function. For now
this only allows to get rid of a cast of the generic device to a
tee_client device in the drivers and changes the remove prototype to
return void---a non-zero return value is ignored anyhow.

The objective is to get rid of users of struct device_driver callbacks
.probe(), .remove() and .shutdown() to eventually remove these. Until
all tee_client drivers are converted this results in a runtime warning
about the drivers needing an update because there is a bus probe
function and a driver probe function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_core.c
include/linux/tee_drv.h