Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1688969

[PATCH 2/3] drm: arcpgu: Fix module unload

From Jose Abreu <Jose.Abreu@synopsys.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] drm: arcpgu: Fix module unload
Date 2017-07-17 14:10 +0200
Message-ID <u4d0C-4Qd-37@gated-at.bofh.it> (permalink)
References <u4d0B-4Qd-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/gpu/drm/arc/arcpgu_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c
index 20ab68f..8abc987 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;
 }
 
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] arcpgu: Fixes and improvements Jose Abreu <Jose.Abreu@synopsys.com> - 2017-07-17 14:10 +0200
  [PATCH 2/3] drm: arcpgu: Fix module unload Jose Abreu <Jose.Abreu@synopsys.com> - 2017-07-17 14:10 +0200
  [PATCH 3/3] drm: arcpgu: Allow some clock deviation in crtc->mode_valid() callback Jose Abreu <Jose.Abreu@synopsys.com> - 2017-07-17 14:10 +0200

csiph-web