mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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>
This commit is contained in:
parent
2966fa040b
commit
7b7e532b58
1 changed files with 2 additions and 3 deletions
|
|
@ -264,7 +264,6 @@ static struct tee_client_driver trusted_key_driver = {
|
|||
.id_table = trusted_key_id_table,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.bus = &tee_bus_type,
|
||||
.probe = trusted_key_probe,
|
||||
.remove = trusted_key_remove,
|
||||
},
|
||||
|
|
@ -272,12 +271,12 @@ static struct tee_client_driver trusted_key_driver = {
|
|||
|
||||
static int trusted_tee_init(void)
|
||||
{
|
||||
return driver_register(&trusted_key_driver.driver);
|
||||
return tee_client_driver_register(&trusted_key_driver);
|
||||
}
|
||||
|
||||
static void trusted_tee_exit(void)
|
||||
{
|
||||
driver_unregister(&trusted_key_driver.driver);
|
||||
tee_client_driver_unregister(&trusted_key_driver);
|
||||
}
|
||||
|
||||
struct trusted_key_ops trusted_key_tee_ops = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue