From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sascha Hauer Subject: Re: [PATCH 03/19] drm/imx: directly call drm_put_dev in ->remove Date: Mon, 4 Nov 2013 09:19:15 +0100 Message-ID: <20131104081915.GO24559@pengutronix.de> References: <1383485485-8210-1-git-send-email-daniel.vetter@ffwll.ch> <1383485485-8210-4-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 metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by gabe.freedesktop.org (Postfix) with ESMTP id 78B5EF110B for ; Mon, 4 Nov 2013 00:19:19 -0800 (PST) Content-Disposition: inline In-Reply-To: <1383485485-8210-4-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: Greg Kroah-Hartman , DRI Development List-Id: dri-devel@lists.freedesktop.org On Sun, Nov 03, 2013 at 02:31:09PM +0100, Daniel Vetter wrote: > Again no apparent user of the driver data field. > > Cc: Sascha Hauer > Cc: Greg Kroah-Hartman > Signed-off-by: Daniel Vetter Acked-by: Sascha Hauer Sascha > --- > drivers/staging/imx-drm/imx-drm-core.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-drm/imx-drm-core.c > index c1014eb2907d..8ffd4a900bb9 100644 > --- a/drivers/staging/imx-drm/imx-drm-core.c > +++ b/drivers/staging/imx-drm/imx-drm-core.c > @@ -432,6 +432,8 @@ static int imx_drm_driver_load(struct drm_device *drm, unsigned long flags) > if (!imx_drm_device_get()) > ret = -EINVAL; > > + platform_set_drvdata(drm->platformdev, drm); > + > ret = 0; > > err_init: > @@ -807,7 +809,7 @@ static int imx_drm_platform_probe(struct platform_device *pdev) > > static int imx_drm_platform_remove(struct platform_device *pdev) > { > - drm_platform_exit(&imx_drm_driver, pdev); > + drm_put_dev(platform_get_drvdata(pdev)); > > return 0; > } > -- > 1.8.4.rc3 > > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |