aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du/rcar_du_vgacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_vgacon.c')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_vgacon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_vgacon.c b/drivers/gpu/drm/rcar-du/rcar_du_vgacon.c
index ccfe64c7188f..8af3944d31b9 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_vgacon.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_vgacon.c
@@ -32,7 +32,7 @@ static const struct drm_connector_helper_funcs connector_helper_funcs = {
32 32
33static void rcar_du_vga_connector_destroy(struct drm_connector *connector) 33static void rcar_du_vga_connector_destroy(struct drm_connector *connector)
34{ 34{
35 drm_sysfs_connector_remove(connector); 35 drm_connector_unregister(connector);
36 drm_connector_cleanup(connector); 36 drm_connector_cleanup(connector);
37} 37}
38 38
@@ -70,7 +70,7 @@ int rcar_du_vga_connector_init(struct rcar_du_device *rcdu,
70 return ret; 70 return ret;
71 71
72 drm_connector_helper_add(connector, &connector_helper_funcs); 72 drm_connector_helper_add(connector, &connector_helper_funcs);
73 ret = drm_sysfs_connector_add(connector); 73 ret = drm_connector_register(connector);
74 if (ret < 0) 74 if (ret < 0)
75 return ret; 75 return ret;
76 76