dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andrzej Hajda <a.hajda@samsung.com>
To: Takashi Iwai <tiwai@suse.de>, dri-devel@lists.freedesktop.org
Cc: Thierry Reding <treding@nvidia.com>
Subject: Re: [PATCH 1/2] drm/mipi-dsi: Unregister bus at exit
Date: Thu, 04 Aug 2016 16:52:40 +0200	[thread overview]
Message-ID: <57A356B8.6020908@samsung.com> (raw)
In-Reply-To: <20160802121643.18021-1-tiwai@suse.de>

On 08/02/2016 02:16 PM, Takashi Iwai wrote:
> This is a preliminary patch for building drm-mipi-dsi as a module.
> Add the module exit callback to unregister the bus properly.
>
> Suggested-by: Thierry Reding <treding@nvidia.com>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>

For both patches:

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

--
Regards
Andrzej

> ---
>  drivers/gpu/drm/drm_mipi_dsi.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c
> index f5d80839a90c..e2f3441663be 100644
> --- a/drivers/gpu/drm/drm_mipi_dsi.c
> +++ b/drivers/gpu/drm/drm_mipi_dsi.c
> @@ -1069,6 +1069,12 @@ static int __init mipi_dsi_bus_init(void)
>  }
>  postcore_initcall(mipi_dsi_bus_init);
>  
> +static void __exit mipi_dsi_bus_exit(void)
> +{
> +	bus_unregister(&mipi_dsi_bus_type);
> +}
> +module_exit(mipi_dsi_bus_exit);
> +
>  MODULE_AUTHOR("Andrzej Hajda <a.hajda@samsung.com>");
>  MODULE_DESCRIPTION("MIPI DSI Bus");
>  MODULE_LICENSE("GPL and additional rights");

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      parent reply	other threads:[~2016-08-04 14:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-02 12:16 [PATCH 1/2] drm/mipi-dsi: Unregister bus at exit Takashi Iwai
2016-08-02 12:16 ` [PATCH 2/2] drm/mipi-dsi: Allow to build drm-mipi-dsi as a module Takashi Iwai
2016-08-04 14:52 ` Andrzej Hajda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57A356B8.6020908@samsung.com \
    --to=a.hajda@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=tiwai@suse.de \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox