From: Christopher Harvey Date: Wed, 5 Jun 2013 15:29:57 +0000 (-0400) Subject: drm/mgag200: Don't do full cleanup if mgag200_device_init fails X-Git-Tag: v3.11-rc1~65^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=279119776d98305af08466c6cc9b7869c57c706f;p=pandora-kernel.git drm/mgag200: Don't do full cleanup if mgag200_device_init fails Running mgag200_driver_unload when the driver init fails early on causes functions like drm_mode_config_cleanup to be called. The problem is, drm_mode_config_cleanup crashes because the corresponding init hasn't happend yet. There really isn't anything to cleanup after mgag200_device_init, so we can just pass the error code upwards. Acked-by: Julia Lemire Signed-off-by: Christopher Harvey Acked-by: Paul Menzel Signed-off-by: Dave Airlie --- Reading git-diff-tree failed