diff options
| author | Guido MartÃnez <guido@vanguardiasur.com.ar> | 2014-06-17 10:17:06 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2014-07-07 21:25:08 -0400 |
| commit | 16dcbdef404f4e87dab985494381939fe0a2d456 (patch) | |
| tree | d4732089128acbffc70d5db9dd389f6b30d48fc0 | |
| parent | daa15b4cd1eee58eb1322062a3320b1dbe5dc96e (diff) | |
drm/tilcdc: tfp410: fix dangling sysfs connector node
Add a drm_sysfs_connector_remove call when we destroy the panel to make
sure the connector node in sysfs gets deleted.
This is required for proper unload and re-load of this driver, otherwise
we will get a warning about a duplicate filename in sysfs.
Signed-off-by: Guido MartÃnez <guido@vanguardiasur.com.ar>
Tested-by: Darren Etheridge <detheridge@ti.com>
Cc: <stable@vger.kernel.org> #v3.9+
Signed-off-by: Dave Airlie <airlied@redhat.com>
| -rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index 5324dfd0b5ed..630360621bac 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | |||
| @@ -167,6 +167,7 @@ struct tfp410_connector { | |||
| 167 | static void tfp410_connector_destroy(struct drm_connector *connector) | 167 | static void tfp410_connector_destroy(struct drm_connector *connector) |
| 168 | { | 168 | { |
| 169 | struct tfp410_connector *tfp410_connector = to_tfp410_connector(connector); | 169 | struct tfp410_connector *tfp410_connector = to_tfp410_connector(connector); |
| 170 | drm_sysfs_connector_remove(connector); | ||
| 170 | drm_connector_cleanup(connector); | 171 | drm_connector_cleanup(connector); |
| 171 | kfree(tfp410_connector); | 172 | kfree(tfp410_connector); |
| 172 | } | 173 | } |
