From: Jose Abreu Date: Mon, 17 Jul 2017 12:08:26 +0000 (+0100) Subject: drm: arcpgu: Fix module unload X-Git-Tag: v4.14-rc1~8^2~42^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c43ff59e71b37b1fc550e9fdd6399c77b8fee68;p=platform%2Fkernel%2Flinux-rpi3.git 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 Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller") Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Daniel Vetter Cc: Dave Airlie Signed-off-by: Alexey Brodkin --- diff --git a/drivers/gpu/drm/arc/arcpgu_drv.c b/drivers/gpu/drm/arc/arcpgu_drv.c index b9009b3..69d0ef6 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; }