From 9d6104e0174b130ed864571b31811c3fd09fd611 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Wed, 30 Oct 2013 11:59:05 +0100 Subject: [PATCH] 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-format-patch failed