Just use drm_output_destroy to cleanup LVDS failures. It'll call our cleanup
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>
Wed, 18 Apr 2007 01:03:14 +0000 (18:03 -0700)
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>
Wed, 18 Apr 2007 01:03:14 +0000 (18:03 -0700)
routine, which will take care of freeing our dev_priv and i2c ddc bus.

linux-core/intel_lvds.c

index 8454bbc..34ed6a9 100644 (file)
@@ -501,6 +501,5 @@ out:
 
 failed:
         DRM_DEBUG("No LVDS modes found, disabling.\n");
-        //        intel_lvds_destroy(output);
-        //     drm_output_destroy(output);
+       drm_output_destroy(output); /* calls intel_lvds_destroy above */
 }