Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c43ff59 authored by Jose Abreu's avatar Jose Abreu Committed by Alexey Brodkin
Browse files

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: default avatarJose 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: default avatarAlexey Brodkin <abrodkin@synopsys.com>
parent a8f8fb20
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}