Message ID | 000601ce4e46$20f2e6b0$62d8b410$@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fbdev-owner@vger.kernel.org> X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 77B173FCA5 for <patchwork-linux-fbdev@patchwork.kernel.org>; Sat, 11 May 2013 12:50:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751990Ab3EKMuh (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Sat, 11 May 2013 08:50:37 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:51744 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781Ab3EKMug (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Sat, 11 May 2013 08:50:36 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMM008Y7X0BYSE0@mailout1.samsung.com> for linux-fbdev@vger.kernel.org; Sat, 11 May 2013 21:50:35 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id AD.6B.19730.A9E3E815; Sat, 11 May 2013 21:50:35 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-c2-518e3e9aa932 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 60.7B.01422.A9E3E815; Sat, 11 May 2013 21:50:34 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMM00F2NX0AJV60@mmp1.samsung.com>; Sat, 11 May 2013 21:50:34 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: linux-fbdev@vger.kernel.org Cc: 'Florian Tobias Schandinat' <FlorianSchandinat@gmx.de>, 'Tomi Valkeinen' <tomi.valkeinen@ti.com>, Jingoo Han <jg1.han@samsung.com>, Wan ZongShun <mcuos.com@gmail.com> Subject: [PATCH 06/15] video: nuc900fb: remove unnecessary platform_set_drvdata() Date: Sat, 11 May 2013 21:50:34 +0900 Message-id: <000601ce4e46$20f2e6b0$62d8b410$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5ORhQBvg+0drFfQ1Sa+AuXvytLDw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsVy+t8zA93Zdn2BBtPULTpnXmO0uLzwEqvF ib4PrBZPp9dZrJ9/i82B1WPnrLvsHh8+xnn0bVnF6HH8xnYmj8+b5AJYo7hsUlJzMstSi/Tt Ergy9r89y1iwna3iwN9jTA2M61m7GDk5JARMJFacaYOyxSQu3FvP1sXIxSEksIxR4vPOBSww RX0T+5ggEosYJS7Pv8oC4fxilDi6ZhMjSBWbgJrEly+H2UFsEQF5iT397WAdzALrGCVmbboE lhAWCJZ4PnMacxcjBweLgKrEv0tSIGFeAUuJxesOsULYghI/Jt8D28wsoCWxfudxJghbXmLz mrfMEBcpSOw4+5oRYpeexJNjM9ggakQk9r14xwiyV0LgELvEvC1PwBpYBAQkvk0+xAKyV0JA VmLTAag5khIHV9xgmcAoNgvJ6llIVs9CsnoWkhULGFlWMYqmFiQXFCelFxnpFSfmFpfmpesl 5+duYoTEXd8OxpsHrA8xJgOtn8gsJZqcD4zbvJJ4Q2MzIwtTE1NjI3NLM9KElcR51VqsA4UE 0hNLUrNTUwtSi+KLSnNSiw8xMnFwSjUwzulzfleZk9chean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3CtzT6oxFKckWioxVxUnAgAK7RgMS8DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> X-Mailing-List: linux-fbdev@vger.kernel.org |
diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index 32581c7..8c527e5 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c @@ -707,7 +707,6 @@ static int nuc900fb_remove(struct platform_device *pdev) release_resource(fbi->mem); kfree(fbi->mem); - platform_set_drvdata(pdev, NULL); framebuffer_release(fbinfo); return 0;
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/video/nuc900fb.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)