From patchwork Sat May 11 12:52:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2553881 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 8F9893FCA5 for ; Sat, 11 May 2013 12:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751990Ab3EKMw5 (ORCPT ); Sat, 11 May 2013 08:52:57 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:30125 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954Ab3EKMw4 (ORCPT ); Sat, 11 May 2013 08:52:56 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMM0054EX47S760@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Sat, 11 May 2013 21:52:55 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id C5.9B.19730.72F3E815; Sat, 11 May 2013 21:52:55 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-ce-518e3f276e43 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id B5.CB.01422.72F3E815; Sat, 11 May 2013 21:52:55 +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 <0MMM00IMXX46Q000@mmp1.samsung.com>; Sat, 11 May 2013 21:52:55 +0900 (KST) From: Jingoo Han To: linux-fbdev@vger.kernel.org Cc: 'Florian Tobias Schandinat' , 'Tomi Valkeinen' , Jingoo Han , 'Laurent Pinchart' , Kuninori Morimoto Subject: [PATCH 08/15] video: sh_mipi_dsi: remove unnecessary platform_set_drvdata() Date: Sat, 11 May 2013 21:52:54 +0900 Message-id: <000801ce4e46$74893770$5d9ba650$@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: Ac5ORk/ja9oEhzuHRG+xp9KdtNz1Jw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsVy+t8zI111+75Ag4e7ZS06Z15jtLi88BKr xavDuxgtJjbdYbE40feB1WL9/FtsDmweHz7GeczumMnq8e3MRBaPvi2rGD2O39jO5PF5k1wA WxSXTUpqTmZZapG+XQJXxrOzO9kKbrNV9Oy+wNbAeJ61i5GTQ0LAROL9kVcsELaYxIV769lA bCGBZYwSrZ+5uhg5wGq6pgd0MXIBhRcxShw/s50NwvnFKPH752qwBjYBNYkvXw6zg9giAvIS e/rbmUCKmAWamCSa59xmBEkIC4RJtLTPZQaxWQRUJXYf2wl2Ba+ApcT7fQvZIWxBiR+T74Fd xCygJbF+53EmCFteYvOat8wQlypI7Dj7mhFimZ7E4d59UPUiEvtevGMEWSwhcIld4u+FmWwQ ywQkvk0+xALxjqzEpgNQcyQlDq64wTKBUWwWktWzkKyehWT1LCQrFjCyrGIUTS1ILihOSi8y 0itOzC0uzUvXS87P3cQIica+HYw3D1gfYkwGWj+RWUo0OR8YzXkl8YbGZkYWpiamxkbmlmak CSuJ86q1WAcKCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRqYJzEK3pbNmZlwOmUvabMv1Llj582 VRfTnSvD2vi+748zl/a5r/U6K5xXXHq4wObmw4ViwkocfXy2G2+n7ar0OlX6RnlyXPfBFtvY yZ6ybNlL2Flv13XfVWQPXTP9/hGBqTVfSvg2GB4pnO8ZYci28Nj6FcJ5JQbOzSI+1l6B8R4a bDpP+Js7lFiKMxINtZiLihMBgUe9tNwCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOKsWRmVeSWpSXmKPExsVy+t9jAV11+75Ag+1HJC06Z15jtLi88BKr xavDuxgtJjbdYbE40feB1WL9/FtsDmweHz7GeczumMnq8e3MRBaPvi2rGD2O39jO5PF5k1wA W1QDo01GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO0BlK CmWJOaVAoYDE4mIlfTtME0JD3HQtYBojdH1DguB6jAzQQMI6xoxnZ3eyFdxmq+jZfYGtgfE8 axcjB4eEgIlE1/SALkZOIFNM4sK99WxdjFwcQgKLGCWOn9kO5fxilPj9czUbSBWbgJrEly+H 2UFsEQF5iT397UwgRcwCTUwSzXNuM4IkhAXCJFra5zKD2CwCqhK7j+1kBbF5BSwl3u9byA5h C0r8mHyPBcRmFtCSWL/zOBOELS+xec1bZoiTFCR2nH3NCLFMT+Jw7z6oehGJfS/eMU5gFJiF ZNQsJKNmIRk1C0nLAkaWVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjB0f5MegfjqgaLQ4wC HIxKPLwVQr2BQqyJZcWVuYcYJTiYlUR4nz0ACvGmJFZWpRblxxeV5qQWH2JMBvp0IrOUaHI+ MBHllcQbGpuYGVkamVkYmZibkyasJM57sNU6UEggPbEkNTs1tSC1CGYLEwenVAPjktCt26IZ WWymiGlvPTe9JlBXf6Pgb0Oj5TsmnF7UsJrVVHPLlCmciYccXVSZFy2r5rhtf0Ti812pt5dU 51QId64Oy/DKmNLlwSn6r+twv1a+3+fWnUbh/z7KdiUd3ev8KanpXoz8vKVa/z60bkl7dyR2 fbr3lrLDM3Pj9D9qBGvmOF//9HS5EktxRqKhFnNRcSIAQhNEBToDAAA= 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: Kuninori Morimoto --- drivers/video/sh_mipi_dsi.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c index 6cad530..8f6e8ff 100644 --- a/drivers/video/sh_mipi_dsi.c +++ b/drivers/video/sh_mipi_dsi.c @@ -567,7 +567,6 @@ static int sh_mipi_remove(struct platform_device *pdev) iounmap(mipi->base); if (res) release_mem_region(res->start, resource_size(res)); - platform_set_drvdata(pdev, NULL); kfree(mipi); return 0;