From patchwork Mon May 6 06:17:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522651 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A62D8DF230 for ; Mon, 6 May 2013 06:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752518Ab3EFGRa (ORCPT ); Mon, 6 May 2013 02:17:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:13017 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489Ab3EFGR3 (ORCPT ); Mon, 6 May 2013 02:17:29 -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 <0MMD0084J5GOMVG0@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:17:28 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 50.26.31024.8FA47815; Mon, 06 May 2013 15:17:28 +0900 (KST) X-AuditID: cbfee68d-b7f016d000007930-37-51874af831c3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CB.3B.01422.8FA47815; Mon, 06 May 2013 15:17:28 +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 <0MMD00DMQ5H3W0G0@mmp1.samsung.com>; Mon, 06 May 2013 15:17:28 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , Lars-Peter Clausen Subject: [PATCH 07/22] mmc: jz4740_mmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:17:27 +0900 Message-id: <005201ce4a21$621061a0$263124e0$@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: Ac5KITwpNJqV9XWTQXSgVk7cvB1Ntw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zY90fXu2BBq8W81lsf72RzeLywkus Fksmz2e1OPK/n9GBxePQlbWMHkveHGL16NuyitHj8ya5AJYoLpuU1JzMstQifbsEroy+SYUF L9krzm94x97AeIiti5GTQ0LARGLVkbvsELaYxIV764HiXBxCAssYJVo7jjDDFJ3ev5MJIrGI UeLCxIusEM4vRokvXX8YQarYBNQkvnw5DDZKREBRYsv342A2s0C6xMKfK8FqhAWCJVZd+8UE YrMIqErcbXwItoFXwFJiyeXXrBC2oMSPyfdYIHq1JNbvPM4EYctLbF7zFuoiBYkdZ18zQuzS k+g/+QGqRkRi34t3jCDHSQisY5eY+fk4G8QyAYlvkw8BDeUASshKbDoANUdS4uCKGywTGMVm IVk9C8nqWUhWz0KyYgEjyypG0dSC5ILipPQiQ73ixNzi0rx0veT83E2MkDjr3cF4+4D1IcZk oPUTmaVEk/OBcZpXEm9obGZkYWpiamxkbmlGmrCSOK9ai3WgkEB6YklqdmpqQWpRfFFpTmrx IUYmDk6pBsbV57+dEX2wZrqp1uHZHr7CZ8VneaQ4eoZYb/1zbub3aeq5nRIn33R1Os7gq4kx 4Vn1xPIH3/oPT/OdCrn2/DH1fDJz8q3cF+Wybx1aS/dP3+mwROi0pYbaGqezF+9/zWtoE1/C sincPVx1x3/5LaeeHLNxebX8vffxptez8iuF/Ti15//b/cZIiaU4I9FQi7moOBEA6gY9WskC AAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsVy+t9jAd0fXu2BBrfOcVlsf72RzeLywkus Fksmz2e1OPK/n9GBxePQlbWMHkveHGL16NuyitHj8ya5AJaoBkabjNTElNQihdS85PyUzLx0 WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCdSgpliTmlQKGAxOJiJX07TBNCQ9x0 LWAaI3R9Q4LgeowM0EDCOsaMvkmFBS/ZK85veMfewHiIrYuRk0NCwETi9P6dTBC2mMSFe+uB 4lwcQgKLGCUuTLzICuH8YpT40vWHEaSKTUBN4suXw+wgtoiAosSW78fBbGaBdImFP1eC1QgL BEusuvYLbCqLgKrE3caHzCA2r4ClxJLLr1khbEGJH5PvsUD0akms33mcCcKWl9i85i0zxEUK EjvOvmaE2KUn0X/yA1SNiMS+F+8YJzAKzEIyahaSUbOQjJqFpGUBI8sqRtHUguSC4qT0XCO9 4sTc4tK8dL3k/NxNjOAofia9g3FVg8UhRgEORiUe3oInbYFCrIllxZW5hxglOJiVRHh99gKF eFMSK6tSi/Lji0pzUosPMSYDfTqRWUo0OR+YYPJK4g2NTcyMLI3MLIxMzM1JE1YS5z3Yah0o JJCeWJKanZpakFoEs4WJg1OqgdF5Tt+fUytLtFV7eX+cO3H85cNbr+a/cMz09Ir594LD35Gp PylWS+qq04Pl8Y53TN7+a3ulsKB5zr+M3lX71q7RE8v2KL21kF1lYfE648wP2refdS3dm+q2 0Xhyym32RWwqlc9Ffv2RZ9PXFpbdMcO01VFasd/220mZLTa+c3j0FHeuzHndoqzEUpyRaKjF XFScCACBOSs9JgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@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 --- drivers/mmc/host/jz4740_mmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index 2391c6b..1c47b34 100644 --- a/drivers/mmc/host/jz4740_mmc.c +++ b/drivers/mmc/host/jz4740_mmc.c @@ -932,7 +932,6 @@ err_release_mem_region: err_clk_put: clk_put(host->clk); err_free_host: - platform_set_drvdata(pdev, NULL); mmc_free_host(mmc); return ret; @@ -960,7 +959,6 @@ static int jz4740_mmc_remove(struct platform_device *pdev) clk_put(host->clk); - platform_set_drvdata(pdev, NULL); mmc_free_host(host->mmc); return 0;