Skip to content

Commit 7b7e532

Browse files
ukleinekjenswi-linaro
authored andcommitted
KEYS: trusted: Migrate to use tee specific driver registration function
The tee subsystem recently got a set of dedicated functions to register (and unregister) a tee driver. Make use of them. These care for setting the driver's bus (so the explicit assignment can be dropped) and the driver owner (which is an improvement this driver benefits from). Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 2966fa0 commit 7b7e532

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

security/keys/trusted-keys/trusted_tee.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,20 +264,19 @@ static struct tee_client_driver trusted_key_driver = {
264264
.id_table = trusted_key_id_table,
265265
.driver = {
266266
.name = DRIVER_NAME,
267-
.bus = &tee_bus_type,
268267
.probe = trusted_key_probe,
269268
.remove = trusted_key_remove,
270269
},
271270
};
272271

273272
static int trusted_tee_init(void)
274273
{
275-
return driver_register(&trusted_key_driver.driver);
274+
return tee_client_driver_register(&trusted_key_driver);
276275
}
277276

278277
static void trusted_tee_exit(void)
279278
{
280-
driver_unregister(&trusted_key_driver.driver);
279+
tee_client_driver_unregister(&trusted_key_driver);
281280
}
282281

283282
struct trusted_key_ops trusted_key_tee_ops = {

0 commit comments

Comments
 (0)