From patchwork Mon May 6 06:34:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522751 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 093F2DF230 for ; Mon, 6 May 2013 06:34:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab3EFGeD (ORCPT ); Mon, 6 May 2013 02:34:03 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:16276 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGeC (ORCPT ); Mon, 6 May 2013 02:34:02 -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 <0MMD0087O68GMVH0@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:34:01 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 52.0E.19730.9DE47815; Mon, 06 May 2013 15:34:01 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-45-51874ed9ed4f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 99.CF.01422.9DE47815; Mon, 06 May 2013 15:34:01 +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 <0MMD00JAH68O5770@mmp2.samsung.com>; Mon, 06 May 2013 15:34:00 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , Haojian Zhuang , 'Kevin Liu' Subject: [PATCH 17/22] mmc: sdhci-pxa: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:34:00 +0900 Message-id: <005c01ce4a23$b1d43bb0$157cb310$@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: Ac5KI4y1EZqivhUFTZOsa44IUqoNZg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsVy+t8zfd2bfu2BBmef8Vpsf72RzeLCOnOL ywsvsVo8miNhceR/P6MDq8fOWXfZPQ5dWcvoMXnhRWaPvi2rGD0+b5ILYI3isklJzcksSy3S t0vgyui5aVRwlbNi3sIO5gbGPo4uRg4OCQETiY3bk7sYOYFMMYkL99azdTFycQgJLGOU+Pux kxkiYSLR9HQiM0RiOqPE6RP/WUASQgK/GCUWd6eB2GwCahJfvhxmB7FFBBQltnw/zg7SwCzQ yyjxpGEPE0hCWCBA4teiB4wgNouAqsSOKdvABvEKWErc2/aRHcIWlPgx+R5YnFlAS2L9zuNM ELa8xOY1b6EuUpDYcfY1I8QyPYl3v78zQ9SISOx78Y4RZLGEwD52ianPVzBDLBOQ+Db5EAvE y7ISmw5AzZGUOLjiBssERrFZSFbPQrJ6FpLVs5CsWMDIsopRNLUguaA4Kb3ISK84Mbe4NC9d Lzk/dxMjJOr6djDePGB9iDEZaP1EZinR5Hxg1OaVxBsamxlZmJqYGhuZW5qRJqwkzqvWYh0o JJCeWJKanZpakFoUX1Sak1p8iJGJg1OqgbH55rwEO/GJUXvywh1DfnA7pe3621bL/d76tPkx j9rzHHFNhvNez/W//y9McvmJr6IfVXVdLjHEPeXrv6GlzHUt9p7+wc+7lx04fjXWYhqz3iz+ M4+MTttk2K75yLetZX3nttQbllwFofIGM2YsmdYiYrnxkev9/J3h33T6V0x0iZpZXyxmlKTE UpyRaKjFXFScCAB9Y9cw0AIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsVy+t9jQd2bfu2BBls+clhsf72RzeLCOnOL ywsvsVo8miNhceR/P6MDq8fOWXfZPQ5dWcvoMXnhRWaPvi2rGD0+b5ILYI1qYLTJSE1MSS1S SM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvMAdqtpFCWmFMKFApILC5W 0rfDNCE0xE3XAqYxQtc3JAiux8gADSSsY8zouWlUcJWzYt7CDuYGxj6OLkZODgkBE4mmpxOZ IWwxiQv31rN1MXJxCAlMZ5Q4feI/C0hCSOAXo8Ti7jQQm01ATeLLl8PsILaIgKLElu/H2UEa mAV6GSWeNOxhAkkICwRI/Fr0gBHEZhFQldgxZRvYIF4BS4l72z6yQ9iCEj8m3wOLMwtoSazf eZwJwpaX2LzmLdRFChI7zr5mhFimJ/Hu93dmiBoRiX0v3jFOYBSYhWTULCSjZiEZNQtJywJG llWMoqkFyQXFSem5RnrFibnFpXnpesn5uZsYwVH9THoH46oGi0OMAhyMSjy8BU/aAoVYE8uK K3MPMUpwMCuJ8PrsBQrxpiRWVqUW5ccXleakFh9iTAb6dCKzlGhyPjDh5JXEGxqbmBlZGplZ GJmYm5MmrCTOe7DVOlBIID2xJDU7NbUgtQhmCxMHp1QDY/dLpy8/a5bOz/p7Ivfm1t/pkbnX Hx99degdYzsnm2Jdj5zUI7MvrKqLY+axLbB7zbx/aYrmKr47SdHHtWZvrgzzXH+3LlJIKzsr uWVJ3Fdpnk0qEyqUYq55PAuV0eitzOaN3iHDfmmW2/Jf5ou5fnbuXl83kbMmu23q7jWacfkC 3KoG1p3GSizFGYmGWsxFxYkAf+PDmi4DAAA= 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 Acked-by: Haojian Zhuang --- drivers/mmc/host/sdhci-pxav2.c | 2 -- drivers/mmc/host/sdhci-pxav3.c | 2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host/sdhci-pxav2.c index 6a3f702..98b5145 100644 --- a/drivers/mmc/host/sdhci-pxav2.c +++ b/drivers/mmc/host/sdhci-pxav2.c @@ -253,8 +253,6 @@ static int sdhci_pxav2_remove(struct platform_device *pdev) sdhci_pltfm_free(pdev); kfree(pxa); - platform_set_drvdata(pdev, NULL); - return 0; } diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 1ae358e..90ee262 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c @@ -339,8 +339,6 @@ static int sdhci_pxav3_remove(struct platform_device *pdev) sdhci_pltfm_free(pdev); kfree(pxa); - platform_set_drvdata(pdev, NULL); - return 0; }