mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 02:24:21 +08:00
drm/omap: call drm_put_dev directly in ->remove
Again omap already sets the driver data pointer to the drm_device. Also drop the driver unregister call, that should be (and already is) done in the module unload hook. Cc: Rob Clark <robdclark@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
c84b435657
commit
fd3c025314
@ -665,9 +665,9 @@ static int pdev_probe(struct platform_device *device)
|
|||||||
static int pdev_remove(struct platform_device *device)
|
static int pdev_remove(struct platform_device *device)
|
||||||
{
|
{
|
||||||
DBG("");
|
DBG("");
|
||||||
drm_platform_exit(&omap_drm_driver, device);
|
|
||||||
|
|
||||||
platform_driver_unregister(&omap_dmm_driver);
|
drm_put_dev(platform_get_drvdata(device));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user