drm/tilcdc: Fix build breakage
authorSachin Kamat <sachin.kamat@samsung.com>
Wed, 9 Jul 2014 11:42:57 +0000 (17:12 +0530)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Jul 2014 02:01:38 +0000 (12:01 +1000)
Commit 34ea3d386347 ("drm: add register and unregister functions
for connectors") probably missed out converting the
drm_sysfs_connector_remove instances in the following files.
Without this patch we get the following compilation error:
ERROR: "drm_sysfs_connector_remove" [drivers/gpu/drm/tilcdc/tilcdc.ko] undefined!

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
CC: Thomas Wood <thomas.wood@intel.com>
CC: David Herrmann <dh.herrmann@gmail.com>
CC: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/tilcdc_panel.c
drivers/gpu/drm/tilcdc/tilcdc_slave.c
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c

index 8ff72c8ad06b0b8d2a5f36ba3c832f58cf46d20c..4c7aa1d8134fa8736c0f31ba28b0f99a9d7259ab 100644 (file)
@@ -151,7 +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_unregister(connector);
        drm_connector_cleanup(connector);
        kfree(panel_connector);
 }
index f02cb7c02f7fc821f86a7b0c09aba984c879c94c..3775fd49dac486694f667f803acd34305fa8febb 100644 (file)
@@ -166,7 +166,7 @@ struct slave_connector {
 static void slave_connector_destroy(struct drm_connector *connector)
 {
        struct slave_connector *slave_connector = to_slave_connector(connector);
-       drm_sysfs_connector_remove(connector);
+       drm_connector_unregister(connector);
        drm_connector_cleanup(connector);
        kfree(slave_connector);
 }
index 82fb5204565ffd5e80342d5eeb23ed425ac52265..354c47ca637407550a9fee0490d537c47e827209 100644 (file)
@@ -167,7 +167,7 @@ struct tfp410_connector {
 static void tfp410_connector_destroy(struct drm_connector *connector)
 {
        struct tfp410_connector *tfp410_connector = to_tfp410_connector(connector);
-       drm_sysfs_connector_remove(connector);
+       drm_connector_unregister(connector);
        drm_connector_cleanup(connector);
        kfree(tfp410_connector);
 }