From: Thierry Reding Date: Wed, 30 Oct 2013 10:59:05 +0000 (+0100) Subject: drm/sysfs: Do not drop device reference twice X-Git-Tag: v3.13-rc1~76^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d6104e0174b130ed864571b31811c3fd09fd611;p=pandora-kernel.git drm/sysfs: Do not drop device reference twice device_unregister() already drops its reference to the struct device, so explicitly calling put_device() before device_unregister() can cause the device to have been freed before it can be unregistered. Signed-off-by: Thierry Reding Reviewed-by: Paulo Zanoni Tested-by: Paulo Zanoni Tested-by: Ben Widawsky Signed-off-by: Dave Airlie --- Reading git-diff-tree failed