From: Jose Abreu Date: Mon, 17 Jul 2017 12:08:26 +0000 (+0100) Subject: drm: arcpgu: Fix module unload X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c43ff59e71b37b1fc550e9fdd6399c77b8fee68;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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; }