From: Daniel Vetter Subject: [PATCH 01/18] drm/omap: fix up pdev_remove Date: Fri, 11 Apr 2014 23:35:58 +0200 Message-ID: <1397252175-14227-2-git-send-email-daniel.vetter@ffwll.ch> References: <1397252175-14227-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by gabe.freedesktop.org (Postfix) with ESMTP id A7A7F6E46C for ; Fri, 11 Apr 2014 14:36:22 -0700 (PDT) Received: by mail-ee0-f44.google.com with SMTP id e49so4621384eek.3 for ; Fri, 11 Apr 2014 14:36:22 -0700 (PDT) In-Reply-To: <1397252175-14227-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: DRI Development Cc: Daniel Vetter , Dave Airlie List-Id: dri-devel@lists.freedesktop.org Dave accidentally merged the wrong version of the patch in commit fd3c02531461924853db65f2664db361b53a70d3 Author: Daniel Vetter Date: Wed Dec 11 11:34:26 2013 +0100 drm/omap: call drm_put_dev directly in ->remove which did not include the fix from Rob's review: omapdrm is split into the drm driver and the dmm driver (yeah, I've complained about that almost-impossible-to-spot difference, too). We need to unregister the dmm driver in the pdev_remove hook. Cc: Dave Airlie Cc: Rob Clark Signed-off-by: Daniel Vetter --- drivers/gpu/drm/omapdrm/omap_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index bf39fcc49e0f..89557989737d 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c @@ -699,6 +699,8 @@ static int pdev_remove(struct platform_device *device) omap_disconnect_dssdevs(); omap_crtc_pre_uninit(); + platform_driver_unregister(&omap_dmm_driver); + drm_put_dev(platform_get_drvdata(device)); return 0; } -- 1.8.5.2