diff mbox

drm/bridge: dw-hdmi: Delete unnecessary assignment for the field "owner"

Message ID 7c97565d-eee3-45e9-b494-9e802977502c@users.sourceforge.net (mailing list archive)
State New, archived
Headers show

Commit Message

SF Markus Elfring Aug. 16, 2016, 11:58 a.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 16 Aug 2016 13:52:19 +0200

The field "owner" is set by the core.
Thus delete an unneeded initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Sean Paul Aug. 23, 2016, 3:36 p.m. UTC | #1
On Tue, Aug 16, 2016 at 7:58 AM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Tue, 16 Aug 2016 13:52:19 +0200
>
> The field "owner" is set by the core.
> Thus delete an unneeded initialisation.
>
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>


Applied to -misc

Sean


> ---
>  drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c b/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c
> index 122bb01..8f2d137 100644
> --- a/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c
> +++ b/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c
> @@ -640,7 +640,6 @@ static struct platform_driver snd_dw_hdmi_driver = {
>         .remove = snd_dw_hdmi_remove,
>         .driver = {
>                 .name = DRIVER_NAME,
> -               .owner = THIS_MODULE,
>                 .pm = PM_OPS,
>         },
>  };
> --
> 2.9.2
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c b/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c
index 122bb01..8f2d137 100644
--- a/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c
+++ b/drivers/gpu/drm/bridge/dw-hdmi-ahb-audio.c
@@ -640,7 +640,6 @@  static struct platform_driver snd_dw_hdmi_driver = {
 	.remove	= snd_dw_hdmi_remove,
 	.driver	= {
 		.name = DRIVER_NAME,
-		.owner = THIS_MODULE,
 		.pm = PM_OPS,
 	},
 };