drm: rcar-du: Don't set connector->encoder at init time
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 23 Feb 2015 11:22:44 +0000 (13:22 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 3 Mar 2015 14:16:02 +0000 (16:16 +0200)
The drm_connector encoder field points to the encoder driving the
connector. No such association exists at init time, as all pipelines are
disabled. Don't set the field.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_hdmicon.c
drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c
drivers/gpu/drm/rcar-du/rcar_du_vgacon.c

index ca94b029ac80ca664c0a53631328eaf90e971754..3896cb20ad5192a0350eddc60b89021411d7e82f 100644 (file)
@@ -116,7 +116,6 @@ int rcar_du_hdmi_connector_init(struct rcar_du_device *rcdu,
        if (ret < 0)
                return ret;
 
-       connector->encoder = encoder;
        rcon->encoder = renc;
 
        return 0;
index 6d9811c052c4bce4d41ea61232fd99aaa71d6aa9..7c0b08fe0774dc3f2d750cafeb8d69acb8de5599 100644 (file)
@@ -125,7 +125,6 @@ int rcar_du_lvds_connector_init(struct rcar_du_device *rcdu,
        if (ret < 0)
                return ret;
 
-       connector->encoder = encoder;
        lvdscon->connector.encoder = renc;
 
        return 0;
index 9d4879921cc7a92e574ba15f47c95370e9a469b9..ae8b304e6fea9bef6835292f7f70eae9d2dac69e 100644 (file)
@@ -84,7 +84,6 @@ int rcar_du_vga_connector_init(struct rcar_du_device *rcdu,
        if (ret < 0)
                return ret;
 
-       connector->encoder = encoder;
        rcon->encoder = renc;
 
        return 0;