aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Abreu <[email protected]>2017-07-17 13:08:26 +0100
committerAlexey Brodkin <[email protected]>2017-08-03 00:11:02 +0300
commit0c43ff59e71b37b1fc550e9fdd6399c77b8fee68 (patch)
tree9bbeb27f09e1d7690a1cdd831a71d087f81f99d8
parenta8f8fb20579cc8a4e4472728380926410f20322a (diff)
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 <[email protected]> Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller") Cc: Carlos Palminha <[email protected]> Cc: Alexey Brodkin <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Dave Airlie <[email protected]> Signed-off-by: Alexey Brodkin <[email protected]>
-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;
}