diff mbox

ASoC: sirf: fix platform_no_drv_owner.cocci warnings

Message ID 20150115090544.GA9368@waimea (mailing list archive)
State New, archived
Headers show

Commit Message

Fengguang Wu Jan. 15, 2015, 9:05 a.m. UTC
sound/soc/sirf/sirf-atlas7-cs42xx8.c:192: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

CC: Yibo Cai <yibo.cai@csr.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 sirf-atlas7-cs42xx8.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Barry Song Jan. 15, 2015, 9:13 a.m. UTC | #1
2015-01-15 17:05 GMT+08:00 kbuild test robot <fengguang.wu@intel.com>:
> sound/soc/sirf/sirf-atlas7-cs42xx8.c:192: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
>
> CC: Yibo Cai <yibo.cai@csr.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

applied to my tree.  thanks, fengguang.
this patch doesn't apply to alsa tree as previous patches are not ready.

> ---
>
>  sirf-atlas7-cs42xx8.c |    1 -
>  1 file changed, 1 deletion(-)
>
> --- a/sound/soc/sirf/sirf-atlas7-cs42xx8.c
> +++ b/sound/soc/sirf/sirf-atlas7-cs42xx8.c
> @@ -189,7 +189,6 @@ MODULE_DEVICE_TABLE(of, sirf_hdmi_card_o
>  static struct platform_driver sirf_hdmi_card_driver = {
>         .driver = {
>                 .name = "sirf-hdmi-card",
> -               .owner = THIS_MODULE,
>                 .pm = &snd_soc_pm_ops,
>                 .of_match_table = sirf_hdmi_card_of_match,
>         },

-barry
diff mbox

Patch

--- a/sound/soc/sirf/sirf-atlas7-cs42xx8.c
+++ b/sound/soc/sirf/sirf-atlas7-cs42xx8.c
@@ -189,7 +189,6 @@  MODULE_DEVICE_TABLE(of, sirf_hdmi_card_o
 static struct platform_driver sirf_hdmi_card_driver = {
 	.driver = {
 		.name = "sirf-hdmi-card",
-		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 		.of_match_table = sirf_hdmi_card_of_match,
 	},