Skip to content

Commit 71e4724

Browse files
ukleinekjenswi-linaro
authored andcommitted
tee: Adapt documentation to cover recent additions
The previous commits introduced some helpers to reduce boilerplate and bus specific callbacks for probe and remove. Adapt the reference example to make use of these. Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 71a3346 commit 71e4724

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

Documentation/driver-api/tee.rst

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,12 @@ snippet would look like::
4343
MODULE_DEVICE_TABLE(tee, client_id_table);
4444

4545
static struct tee_client_driver client_driver = {
46+
.probe = client_probe,
47+
.remove = client_remove,
4648
.id_table = client_id_table,
4749
.driver = {
4850
.name = DRIVER_NAME,
49-
.bus = &tee_bus_type,
50-
.probe = client_probe,
51-
.remove = client_remove,
5251
},
5352
};
5453

55-
static int __init client_init(void)
56-
{
57-
return driver_register(&client_driver.driver);
58-
}
59-
60-
static void __exit client_exit(void)
61-
{
62-
driver_unregister(&client_driver.driver);
63-
}
64-
65-
module_init(client_init);
66-
module_exit(client_exit);
54+
module_tee_client_driver(client_driver);

0 commit comments

Comments
 (0)