summary refs log tree commit diff
diff options
context:
space:
mode:
authorJose Abreu <Jose.Abreu@synopsys.com>2017-07-17 13:08:26 +0100
committerAlexey Brodkin <abrodkin@synopsys.com>2017-08-03 00:11:02 +0300
commit0c43ff59e71b37b1fc550e9fdd6399c77b8fee68 (patch)
tree9bbeb27f09e1d7690a1cdd831a71d087f81f99d8
parenta8f8fb20579cc8a4e4472728380926410f20322a (diff)
downloadlinux-0c43ff59e71b37b1fc550e9fdd6399c77b8fee68.tar.gz
drm: arcpgu: Fix module unload
At module unload we are expecting a struct drm_device but at
probing we are not setting it right. Fix this and correct the
arcpgu module unload.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller")
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
-rw-r--r--drivers/gpu/drm/arc/arcpgu_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c
index b9009b31dd45..69d0ef684f7b 100644
--- a/drivers/gpu/drm/arc/arcpgu_drv.c
+++ b/drivers/gpu/drm/arc/arcpgu_drv.c
@@ -120,7 +120,7 @@ static int arcpgu_load(struct drm_device *drm)
 		return -ENODEV;
 	}
 
-	platform_set_drvdata(pdev, arcpgu);
+	platform_set_drvdata(pdev, drm);
 	return 0;
 }