drm: arcpgu: Fix module unload
authorJose Abreu <[email protected]>
Mon, 17 Jul 2017 12:08:26 +0000 (13:08 +0100)
committerAlexey Brodkin <[email protected]>
Wed, 2 Aug 2017 21:11:02 +0000 (00:11 +0300)
commit0c43ff59e71b37b1fc550e9fdd6399c77b8fee68
tree9bbeb27f09e1d7690a1cdd831a71d087f81f99d8
parenta8f8fb20579cc8a4e4472728380926410f20322a
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 <[email protected]>
Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller")
Cc: Carlos Palminha <[email protected]>
Cc: Alexey Brodkin <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Dave Airlie <[email protected]>
Signed-off-by: Alexey Brodkin <[email protected]>
drivers/gpu/drm/arc/arcpgu_drv.c