Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jose Abreu and committed by
Alexey Brodkin
0c43ff59 a8f8fb20

+1 -1
+1 -1
drivers/gpu/drm/arc/arcpgu_drv.c
··· 120 120 return -ENODEV; 121 121 } 122 122 123 - platform_set_drvdata(pdev, arcpgu); 123 + platform_set_drvdata(pdev, drm); 124 124 return 0; 125 125 } 126 126