From patchwork Mon May 6 06:06:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522601 Return-Path: X-Original-To: patchwork-linux-mmc@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 D144D3FC5A for ; Mon, 6 May 2013 06:07:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572Ab3EFGHL (ORCPT ); Mon, 6 May 2013 02:07:11 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:51019 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497Ab3EFGHK (ORCPT ); Mon, 6 May 2013 02:07:10 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD004YI4Z8HSP0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:06:47 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 00.15.19350.77847815; Mon, 06 May 2013 15:06:47 +0900 (KST) X-AuditID: cbfee691-b7fe56d000004b96-e7-518748779620 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F6.38.01422.77847815; Mon, 06 May 2013 15:06:47 +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 <0MMD00F404ZBRV40@mmp1.samsung.com>; Mon, 06 May 2013 15:06:47 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Ludovic Desroches' Subject: [PATCH 02/22] mmc: atmel-mci: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:06:47 +0900 Message-id: <004d01ce4a1f$e452db40$acf891c0$@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: Ac5KH8g2lF6P/WPFR6aWS2Ia8DwbCQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t8zQ91yj/ZAg2VPDS22v97IZnF54SVW iyP/+xktDs1MdmDxWPBrK4vHoStrGT36tqxi9Pi8SS6AJYrLJiU1J7MstUjfLoEr48/zE4wF +9krrn9oYGxgnMbWxcjJISFgIrF47y8WCFtM4sK99UBxLg4hgWWMEo1HljPDFB0+f5ERIrGI UWLPi/9gCSGBX4wS+ybqgthsAmoSX74cZgexRQQUJbZ8Pw5mMwuUSDTvbmACsYUFAiTmP/0A FmcRUJW4MvUcI4jNK2ApcbdjGxOELSjxY/I9FoheLYn1O48zQdjyEpvXvIU6SEFix9nXjBC7 9CQ2veuFqhGR2PfiHdihEgKr2CWO/21ihVgmIPFt8iGgoRxACVmJTQeg5khKHFxxg2UCo9gs JKtnIVk9C8nqWUhWLGBkWcUomlqQXFCclF5kqlecmFtcmpeul5yfu4kREmUTdzDeP2B9iDEZ aP1EZinR5HxglOaVxBsamxlZmJqYGhuZW5qRJqwkzqveYh0oJJCeWJKanZpakFoUX1Sak1p8 iJGJg1OqgZH1SoSQ6bQcldaw4ByR9T5ZBd+btn+QehByzy1WwldtldR8xt9F+xaonytew1YR sL9f3tlAV3V7wkRj/5pTn3apOnXtfiz4+CSjauuPxYutHh16+KGOu+KodnyMg5j53E6NFdn3 dwpEvRJWWN0YYWLr0vd/yhqXAgU3iftLZJnfTw/Lyzc9p8RSnJFoqMVcVJwIAC6SMXLIAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsVy+t9jAd1yj/ZAg48/dS22v97IZnF54SVW iyP/+xktDs1MdmDxWPBrK4vHoStrGT36tqxi9Pi8SS6AJaqB0SYjNTEltUghNS85PyUzL91W yTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMHaKWSQlliTilQKCCxuFhJ3w7ThNAQN10L mMYIXd+QILgeIwM0kLCOMePP8xOMBfvZK65/aGBsYJzG1sXIySEhYCJx+PxFRghbTOLCvfVA cS4OIYFFjBJ7XvxnBkkICfxilNg3URfEZhNQk/jy5TA7iC0ioCix5ftxMJtZoESieXcDE4gt LBAgMf/pB7A4i4CqxJWp58AW8ApYStzt2MYEYQtK/Jh8jwWiV0ti/c7jTBC2vMTmNW+ZIQ5S kNhx9jUjxC49iU3veqFqRCT2vXjHOIFRYBaSUbOQjJqFZNQsJC0LGFlWMYqmFiQXFCel5xrp FSfmFpfmpesl5+duYgTH8DPpHYyrGiwOMQpwMCrx8BY8aQsUYk0sK67MPcQowcGsJMLrsxco xJuSWFmVWpQfX1Sak1p8iDEZ6NOJzFKiyfnA9JJXEm9obGJmZGlkZmFkYm5OmrCSOO/BVutA IYH0xJLU7NTUgtQimC1MHJxSDYymUnN9mwUKZf8+5VobaSm1PfJw4vfjz1MkevZucLVOO73Q z0vUs6N4w5/aLT1nDSq/5r0V3C8XLFK8/L36rstyKt0CgsHCWYv8ub+GGfxn2aX8frX0rwD9 edkWf6NE2MLmam+SCfxQbyhUsUVfWjT8ffiHBwseCjHtdk7Mmu6useb6lOSzD5VYijMSDbWY i4oTAYyF4tclAwAA 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/atmel-mci.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index e75774f..70fa449 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -2476,8 +2476,6 @@ static int __exit atmci_remove(struct platform_device *pdev) struct atmel_mci *host = platform_get_drvdata(pdev); unsigned int i; - platform_set_drvdata(pdev, NULL); - if (host->buffer) dma_free_coherent(&pdev->dev, host->buf_size, host->buffer, host->buf_phys_addr);