drm: Remove unnecessary drm_panel_attach and drm_panel_detach
[linux-2.6-microblaze.git] / drivers / gpu / drm / bridge / analogix / analogix-anx6345.c
index f082b4e..d9164fa 100644 (file)
@@ -507,10 +507,6 @@ static const struct drm_connector_helper_funcs anx6345_connector_helper_funcs =
 static void
 anx6345_connector_destroy(struct drm_connector *connector)
 {
-       struct anx6345 *anx6345 = connector_to_anx6345(connector);
-
-       if (anx6345->panel)
-               drm_panel_detach(anx6345->panel);
        drm_connector_cleanup(connector);
 }
 
@@ -575,14 +571,6 @@ static int anx6345_bridge_attach(struct drm_bridge *bridge,
                return err;
        }
 
-       if (anx6345->panel) {
-               err = drm_panel_attach(anx6345->panel, &anx6345->connector);
-               if (err) {
-                       DRM_ERROR("Failed to attach panel: %d\n", err);
-                       return err;
-               }
-       }
-
        return 0;
 }