diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2017-07-17 13:08:26 +0100 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2017-08-03 00:11:02 +0300 |
commit | 0c43ff59e71b37b1fc550e9fdd6399c77b8fee68 (patch) | |
tree | 9bbeb27f09e1d7690a1cdd831a71d087f81f99d8 /drivers/gpu/drm/arc | |
parent | a8f8fb20579cc8a4e4472728380926410f20322a (diff) | |
download | linux-stable-0c43ff59e71b37b1fc550e9fdd6399c77b8fee68.tar.gz linux-stable-0c43ff59e71b37b1fc550e9fdd6399c77b8fee68.tar.bz2 linux-stable-0c43ff59e71b37b1fc550e9fdd6399c77b8fee68.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/arc')
-rw-r--r-- | drivers/gpu/drm/arc/arcpgu_drv.c | 2 |
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; } |