Commit d149b855 authored by Zou Wei's avatar Zou Wei Committed by Mark Brown

regulator: bd71815: fix platform_no_drv_owner.cocci warnings

./drivers/regulator/bd71815-regulator.c:644:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Acked-by: default avatarMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Message-Id: <1622109244-54739-1-git-send-email-zou_wei@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f85ea494
...@@ -641,7 +641,6 @@ MODULE_DEVICE_TABLE(platform, bd7181x_pmic_id); ...@@ -641,7 +641,6 @@ MODULE_DEVICE_TABLE(platform, bd7181x_pmic_id);
static struct platform_driver bd7181x_regulator = { static struct platform_driver bd7181x_regulator = {
.driver = { .driver = {
.name = "bd7181x-pmic", .name = "bd7181x-pmic",
.owner = THIS_MODULE,
}, },
.probe = bd7181x_probe, .probe = bd7181x_probe,
.id_table = bd7181x_pmic_id, .id_table = bd7181x_pmic_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment