Merge remote-tracking branch 'drm/drm-next' into drm-misc-next-fixes
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 26 Jun 2019 10:22:54 +0000 (12:22 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 26 Jun 2019 10:22:54 +0000 (12:22 +0200)
Some fixes have been accidentally pushed to this, so I cannot fost-forward.
Required to pull in the remove-fbcon-notifiers fixes.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/bridge/ti-tfp410.c

index bfb21b5eefe151392a04ca2e1f02b08f95e1aa3e..4e76b2b27374fe90a4cb9464ab4febf33dac0e85 100644 (file)
@@ -70,7 +70,12 @@ static int tfp410_get_modes(struct drm_connector *connector)
 
        drm_connector_update_edid_property(connector, edid);
 
-       return drm_add_edid_modes(connector, edid);
+       ret = drm_add_edid_modes(connector, edid);
+
+       kfree(edid);
+
+       return ret;
+
 fallback:
        /* No EDID, fallback on the XGA standard modes */
        ret = drm_add_modes_noedid(connector, 1920, 1200);
@@ -376,7 +381,8 @@ static int tfp410_fini(struct device *dev)
 {
        struct tfp410 *dvi = dev_get_drvdata(dev);
 
-       cancel_delayed_work_sync(&dvi->hpd_work);
+       if (dvi->hpd_irq >= 0)
+               cancel_delayed_work_sync(&dvi->hpd_work);
 
        drm_bridge_remove(&dvi->bridge);