Skip to content

Commit 0a6441a

Browse files
ukleinekjenswi-linaro
authored andcommitted
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>
1 parent 5e9151c commit 0a6441a

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

drivers/firmware/efi/stmm/tee_stmm_efi.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -584,24 +584,12 @@ static struct tee_client_driver tee_stmm_efi_driver = {
584584
.id_table = tee_stmm_efi_id_table,
585585
.driver = {
586586
.name = "tee-stmm-efi",
587-
.bus = &tee_bus_type,
588587
.probe = tee_stmm_efi_probe,
589588
.remove = tee_stmm_efi_remove,
590589
},
591590
};
592591

593-
static int __init tee_stmm_efi_mod_init(void)
594-
{
595-
return driver_register(&tee_stmm_efi_driver.driver);
596-
}
597-
598-
static void __exit tee_stmm_efi_mod_exit(void)
599-
{
600-
driver_unregister(&tee_stmm_efi_driver.driver);
601-
}
602-
603-
module_init(tee_stmm_efi_mod_init);
604-
module_exit(tee_stmm_efi_mod_exit);
592+
module_tee_client_driver(tee_stmm_efi_driver);
605593

606594
MODULE_LICENSE("GPL");
607595
MODULE_AUTHOR("Ilias Apalodimas <ilias.apalodimas@linaro.org>");

0 commit comments

Comments
 (0)