Merge tag 'omapdrm-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux...
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / gpu / drm / omapdrm / omap_drv.c
index c57e99c..bf39fcc 100644 (file)
@@ -695,12 +695,11 @@ static int pdev_probe(struct platform_device *device)
 static int pdev_remove(struct platform_device *device)
 {
        DBG("");
-       drm_platform_exit(&omap_drm_driver, device);
 
        omap_disconnect_dssdevs();
        omap_crtc_pre_uninit();
 
-       platform_driver_unregister(&omap_dmm_driver);
+       drm_put_dev(platform_get_drvdata(device));
        return 0;
 }