Re: [PATCH 04/10] drm/tilcdc: panel: fix dangling sysfs connector node

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

 



Hi all,

Please ignore this post, I sent it to the list by mistake. We're
working on some fixes, which should be ready in the next days.

Sorry about this,
Guido

On Tue, Jun 03, 2014 at 01:40:01PM -0300, Guido Martínez wrote:
> Add a drm_sysfs_connector_remove call when we destroy the panel to make
> sure the connector node in sysfs gets deleted.
> 
> This prevented the module from being reloaded after unloading.
> 
> Signed-off-by: Guido Martínez <guido@xxxxxxxxxxxxxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---
>  drivers/gpu/drm/tilcdc/tilcdc_panel.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> index 86c6732..1943b2f 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> @@ -151,6 +151,7 @@ struct panel_connector {
>  static void panel_connector_destroy(struct drm_connector *connector)
>  {
>  	struct panel_connector *panel_connector = to_panel_connector(connector);
> +	drm_sysfs_connector_remove(connector);
>  	drm_connector_cleanup(connector);
>  	kfree(panel_connector);
>  }
> -- 
> 2.0.0.rc2
> 

-- 
Guido Martínez, VanguardiaSur
www.vanguardiasur.com.ar
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]