OSDN Git Service

tpm/tpm_tis_synquacer: Use module_platform_driver macro to simplify the code
authorLi Zetao <lizetao1@huawei.com>
Tue, 15 Aug 2023 08:06:37 +0000 (16:06 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 17 Aug 2023 20:12:41 +0000 (20:12 +0000)
commit2ccf8c76b4fb38deb25af3830aa9489b6a374621
treed65fe624993cddb57e7f5a6738084347bf6ece12
parentdf333d058a60a8dc282009a483124983669b4203
tpm/tpm_tis_synquacer: Use module_platform_driver macro to simplify the code

Use the module_platform_driver macro to simplify the code, which is the
same as declaring with module_init() and module_exit().

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_synquacer.c