mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
efi: stmm: Make use of module_tee_client_driver()
Reduce boilerplate by using the newly introduced module_tee_client_driver(). That takes care of assigning the driver's bus, so the explicit assigning in this driver can be dropped. Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This commit is contained in:
parent
5e9151cecb
commit
0a6441a30b
|
|
@ -584,24 +584,12 @@ static struct tee_client_driver tee_stmm_efi_driver = {
|
|||
.id_table = tee_stmm_efi_id_table,
|
||||
.driver = {
|
||||
.name = "tee-stmm-efi",
|
||||
.bus = &tee_bus_type,
|
||||
.probe = tee_stmm_efi_probe,
|
||||
.remove = tee_stmm_efi_remove,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init tee_stmm_efi_mod_init(void)
|
||||
{
|
||||
return driver_register(&tee_stmm_efi_driver.driver);
|
||||
}
|
||||
|
||||
static void __exit tee_stmm_efi_mod_exit(void)
|
||||
{
|
||||
driver_unregister(&tee_stmm_efi_driver.driver);
|
||||
}
|
||||
|
||||
module_init(tee_stmm_efi_mod_init);
|
||||
module_exit(tee_stmm_efi_mod_exit);
|
||||
module_tee_client_driver(tee_stmm_efi_driver);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Ilias Apalodimas <ilias.apalodimas@linaro.org>");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user