From patchwork Mon May 6 06:35:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522761 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 62A09DF230 for ; Mon, 6 May 2013 06:35:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752504Ab3EFGfy (ORCPT ); Mon, 6 May 2013 02:35:54 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:12925 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGfy (ORCPT ); Mon, 6 May 2013 02:35:54 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD003UR6AMFZO0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:35:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 30.5E.13955.94F47815; Mon, 06 May 2013 15:35:53 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-6a-51874f49eb1e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 68.22.08957.94F47815; Mon, 06 May 2013 15:35:53 +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 <0MMD00EFL6BS1231@mmp2.samsung.com>; Mon, 06 May 2013 15:35:53 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Ben Dooks' , Jaehoon Chung , Jingoo Han Subject: [PATCH 18/22] mmc: sdhci-s3c: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:35:52 +0900 Message-id: <005d01ce4a23$f4a94d90$ddfbe8b0$@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: Ac5KI76B3OwXcDuSSk2Ezn/5sTlpUQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t8zQ11P//ZAgxNHRCwmrTvAZLH99UY2 i8sLL7Fa3PjVxmpx5H8/owOrx99VL5g9Dl1Zy+jRt2UVo8fnTXIBLFFcNimpOZllqUX6dglc Gfu717IX7GWr6P83gbWBcRtrFyMnh4SAicSMRZ8ZIWwxiQv31rN1MXJxCAksY5ToObCSBaZo yf9t7BCJ6YwSnbfnMkE4vxglZr16AzaKTUBN4suXw+wgtoiAosSW78fBbGaBDYwSP25mgdjC AgES85dMZQKxWQRUJd6deMIMYvMKWEqsa3sOZQtK/Jh8jwWiV0ti/c7jTBC2vMTmNW+ZIS5S kNhx9jUjxC49iWeLtjFC1IhI7HvxjhHkOAmBbewSf2/dY4VYJiDxbfIhoKEcQAlZiU0HoOZI ShxccYNlAqPYLCSrZyFZPQvJ6llIVixgZFnFKJpakFxQnJReZKxXnJhbXJqXrpecn7uJERJz /TsY7x6wPsSYDLR+IrOUaHI+MGbzSuINjc2MLExNTI2NzC3NSBNWEudVa7EOFBJITyxJzU5N LUgtii8qzUktPsTIxMEp1cDIYfmh7+2Jvq/ldhJ7uBZu++Kfyu/3uvt8wdmGVxxuXifnq2d9 FNFtKl6xQv+YdZ5Gu1oxz8Hs1TXbambu8hfyUpnR8n2de9yxg73vIpy3RM2+8f3R5/h51UHd vyY8rPm/mOeJHK/SATYZuV9neUNswtgev173hXvrvb9armV5e5bbPJiizpCjxFKckWioxVxU nAgALHI0sM8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsVy+t9jQV1P//ZAg0PvBCwmrTvAZLH99UY2 i8sLL7Fa3PjVxmpx5H8/owOrx99VL5g9Dl1Zy+jRt2UVo8fnTXIBLFENjDYZqYkpqUUKqXnJ +SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QIuVFMoSc0qBQgGJxcVK+naY JoSGuOlawDRG6PqGBMH1GBmggYR1jBn7u9eyF+xlq+j/N4G1gXEbaxcjJ4eEgInEkv/b2CFs MYkL99azdTFycQgJTGeU6Lw9lwnC+cUoMevVG7AONgE1iS9fDoN1iAgoSmz5fhzMZhbYwCjx 42YWiC0sECAxf8lUJhCbRUBV4t2JJ8wgNq+ApcS6tudQtqDEj8n3WCB6tSTW7zzOBGHLS2xe 85YZ4iIFiR1nXzNC7NKTeLZoGyNEjYjEvhfvGCcwCsxCMmoWklGzkIyahaRlASPLKkbR1ILk guKk9FxDveLE3OLSvHS95PzcTYzgiH4mtYNxZYPFIUYBDkYlHt6CJ22BQqyJZcWVuYcYJTiY lUR4ffYChXhTEiurUovy44tKc1KLDzEmA306kVlKNDkfmGzySuINjU3MjCyNzCyMTMzNSRNW Euc90GodKCSQnliSmp2aWpBaBLOFiYNTqoFRQGDR/4Pms4TmXZuj/Pvp2dgbYU629a7zs68V Bcx2ZSi6LNa6NeaMwe9wUTFLj6nXf8t7zn0sX2V111yN86V8+XbLD6tllarLuu8KfFU/Iq1X eb9+SV71ouTJLnvnMkWmZt9InMKjtsthfb9XXu9dE/dfu5bf267S843/YnZj38HLp+sOF61V YinOSDTUYi4qTgQAa9Zl3SwDAAA= 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: Jaehoon Chung --- drivers/mmc/host/sdhci-s3c.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index c6f6246..926aaf6 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -745,7 +745,6 @@ static int sdhci_s3c_remove(struct platform_device *pdev) clk_disable_unprepare(sc->clk_io); sdhci_free_host(host); - platform_set_drvdata(pdev, NULL); return 0; }