Re: [PATCH 1/2] drm/mipi-dsi: Unregister bus at exit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>

For both patches:

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

--
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@xxxxxxxxxxx>");
>  MODULE_DESCRIPTION("MIPI DSI Bus");
>  MODULE_LICENSE("GPL and additional rights");

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




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux