From patchwork Sat May 11 12:49:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2553851 Return-Path: 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 096673FCA5 for ; Sat, 11 May 2013 12:50:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226Ab3EKMt7 (ORCPT ); Sat, 11 May 2013 08:49:59 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:29983 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781Ab3EKMt6 (ORCPT ); Sat, 11 May 2013 08:49:58 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMM0001IWZ94G70@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Sat, 11 May 2013 21:49:57 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 0A.0E.31024.57E3E815; Sat, 11 May 2013 21:49:57 +0900 (KST) X-AuditID: cbfee68d-b7f016d000007930-b7-518e3e7565e0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E7.03.08957.57E3E815; Sat, 11 May 2013 21:49:57 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMM00K40WZ9ZH30@mmp2.samsung.com>; Sat, 11 May 2013 21:49:57 +0900 (KST) From: Jingoo Han To: linux-fbdev@vger.kernel.org Cc: 'Florian Tobias Schandinat' , 'Tomi Valkeinen' , Jingoo Han , Shawn Guo , Fabio Estevam Subject: [PATCH 05/15] video: mxsfb: remove unnecessary platform_set_drvdata() Date: Sat, 11 May 2013 21:49:57 +0900 Message-id: <000501ce4e46$0acce340$2066a9c0$@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: Ac5ORfHLeICI8M0KS4CrjE1LJc5zYQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBIsWRmVeSWpSXmKPExsVy+t8zI91Su75Ag6fvjC1mdeladM68xmhx eeElVosTfR9YLZ6uW8JssX7+LTYHNo9/h/uZPD58jPO4c20Pm0ffllWMHsdvbGfy+LxJLoAt issmJTUnsyy1SN8ugStj1Z0G1oJ/rBU771U3MH5j6WLk4JAQMJF48Jeri5ETyBSTuHBvPVsX IxeHkMAyRon9n+8xQSRMJN5POccCkZjOKNF5qJkJwvnFKPHtyhwWkCo2ATWJL18Os4PYIgLy Env628GKmAVuMko82DIDLCEs4Cex/3YzM4jNIqAqsfPDRFYQm1fAUqJx6TRGCFtQ4sfke2BD mQW0JNbvPM4EYctLbF7zlhniJAWJHWdfM0Is05OYsnI2M0SNiMS+F+8YQRZLCJxil1i7ejsj xDIBiW+TD0H9LCux6QDUHEmJgytusExgFJuFZPUsJKtnIVk9C8mKBYwsqxhFUwuSC4qT0osM 9YoTc4tL89L1kvNzNzFCYrF3B+PtA9aHGJOB1k9klhJNzgfGcl5JvKGxmZGFqYmpsZG5pRlp wkrivGot1oFCAumJJanZqakFqUXxRaU5qcWHGJk4OKUaGLOv+c2zlLqyP7A7m6ul4t35p5dn Rs0+f0t52vRrdkuOLjSfYb6AXcaq11cxK8KM//r3M7zfS1gOczo8ftjh+aBkhphjnEhVDncf 65UZ9X1Mgmwzb38Q5+Di4V5hHLGl9XzVXrNFyjwKZ9cY/FR+tNN7uoDujtlijeFn2O2sFnO2 S/eILSz4rMRSnJFoqMVcVJwIANI/ho/bAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGKsWRmVeSWpSXmKPExsVy+t9jQd1Su75Ag29/9C1mdeladM68xmhx eeElVosTfR9YLZ6uW8JssX7+LTYHNo9/h/uZPD58jPO4c20Pm0ffllWMHsdvbGfy+LxJLoAt qoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwfoCiWF ssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYR1jxqo7DawF/1grdt6rbmD8xtLF yMkhIWAi8X7KOShbTOLCvfVsXYxcHEIC0xklOg81M0E4vxglvl2ZA1bFJqAm8eXLYXYQW0RA XmJPfztYEbPATUaJB1tmgCWEBfwk9t9uZgaxWQRUJXZ+mMgKYvMKWEo0Lp3GCGELSvyYfA9s KLOAlsT6nceZIGx5ic1r3jJDnKQgsePsa0aIZXoSU1bOZoaoEZHY9+Id4wRGgVlIRs1CMmoW klGzkLQsYGRZxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iREc68+kdjCubLA4xCjAwajEw6sg 0BsoxJpYVlyZe4hRgoNZSYT32QOgEG9KYmVValF+fFFpTmrxIcZkoE8nMkuJJucD01BeSbyh sYmZkaWRmYWRibk5acJK4rwHWq0DhQTSE0tSs1NTC1KLYLYwcXBKNTDaa+nezbqXzHBAjHly 6t3j8WtSAk9lujNGLNhbfsRVtGgCl9/+4Nd7XnuzbP3W+md/9vzfX+22/rKfpqZY5btWt/nE erPPU2LDuRinzGJVPSuyfI9wXElUyKvV140vftL7sap2/tKYN+2X2TbYP7v329ytWqe1buNL gZcmPzj1eGdpT+lyfCKnxFKckWioxVxUnAgAjJg8DTkDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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 Acked-by: Shawn Guo --- drivers/video/mxsfb.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 21223d4..10210a0 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -986,8 +986,6 @@ static int mxsfb_remove(struct platform_device *pdev) framebuffer_release(fb_info); - platform_set_drvdata(pdev, NULL); - return 0; }