* [PATCH -next] tpm: fix platform_no_drv_owner.cocci warning
@ 2022-07-01 9:13 Yang Li
2022-07-11 0:02 ` Jarkko Sakkinen
0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2022-07-01 9:13 UTC (permalink / raw)
To: peterhuewe; +Cc: jarkko, jgg, linux-integrity, linux-kernel, Yang Li
Eliminate the following coccicheck warning:
./drivers/char/tpm/tpm_tis_i2c.c:379:3-8: No need to set .owner here. The core will do it.
Remove .owner field if calls are used which set it automatically
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/char/tpm/tpm_tis_i2c.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c
index 8e0686fe4eb1..ba0911b1d1ff 100644
--- a/drivers/char/tpm/tpm_tis_i2c.c
+++ b/drivers/char/tpm/tpm_tis_i2c.c
@@ -376,7 +376,6 @@ MODULE_DEVICE_TABLE(of, of_tis_i2c_match);
static struct i2c_driver tpm_tis_i2c_driver = {
.driver = {
- .owner = THIS_MODULE,
.name = "tpm_tis_i2c",
.pm = &tpm_tis_pm,
.of_match_table = of_match_ptr(of_tis_i2c_match),
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH -next] tpm: fix platform_no_drv_owner.cocci warning
2022-07-01 9:13 [PATCH -next] tpm: fix platform_no_drv_owner.cocci warning Yang Li
@ 2022-07-11 0:02 ` Jarkko Sakkinen
0 siblings, 0 replies; 2+ messages in thread
From: Jarkko Sakkinen @ 2022-07-11 0:02 UTC (permalink / raw)
To: Yang Li; +Cc: peterhuewe, jgg, linux-integrity, linux-kernel
On Fri, Jul 01, 2022 at 05:13:22PM +0800, Yang Li wrote:
> Eliminate the following coccicheck warning:
> ./drivers/char/tpm/tpm_tis_i2c.c:379:3-8: No need to set .owner here. The core will do it.
>
> Remove .owner field if calls are used which set it automatically
>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
> drivers/char/tpm/tpm_tis_i2c.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_i2c.c
> index 8e0686fe4eb1..ba0911b1d1ff 100644
> --- a/drivers/char/tpm/tpm_tis_i2c.c
> +++ b/drivers/char/tpm/tpm_tis_i2c.c
> @@ -376,7 +376,6 @@ MODULE_DEVICE_TABLE(of, of_tis_i2c_match);
>
> static struct i2c_driver tpm_tis_i2c_driver = {
> .driver = {
> - .owner = THIS_MODULE,
> .name = "tpm_tis_i2c",
> .pm = &tpm_tis_pm,
> .of_match_table = of_match_ptr(of_tis_i2c_match),
> --
> 2.20.1.7.g153144c
>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
BR, Jarkko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-11 0:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-01 9:13 [PATCH -next] tpm: fix platform_no_drv_owner.cocci warning Yang Li
2022-07-11 0:02 ` Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).