From patchwork Mon May 6 06:32:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522741 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 9A344DF230 for ; Mon, 6 May 2013 06:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752504Ab3EFGct (ORCPT ); Mon, 6 May 2013 02:32:49 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:12190 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGct (ORCPT ); Mon, 6 May 2013 02:32:49 -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 <0MMD003NR65HFZO0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:32:45 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 2C.9C.13955.D8E47815; Mon, 06 May 2013 15:32:45 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-4c-51874e8db1b3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 32.E0.08957.D8E47815; Mon, 06 May 2013 15:32:45 +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 <0MMD00F8666KRVB0@mmp1.samsung.com>; Mon, 06 May 2013 15:32:45 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Anton Vorontsov' , 'Chunhe Lan' Subject: [PATCH 16/22] mmc: sdhci-pltfm: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:32:44 +0900 Message-id: <005b01ce4a23$849b3cc0$8dd1b640$@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: Ac5KI0xkZ7Ar1L5RTWeIe8Ou8B+XFw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zI91ev/ZAg8Wr+Cz2Xr3LZLF2Y5XF 9tcb2SwuL7zEanHkfz+jA6vH9kNNTB6Hrqxl9JhzbB6LR9+WVYwenzfJBbBGcdmkpOZklqUW 6dslcGWsbd7EUtDOXtE88TV7A2MjWxcjJ4eEgInEmsYljBC2mMSFe+vB4kICyxglPv+ugKl5 +f0VexcjF1B8EaPE1DOPWCGcX4wSHV8usoNUsQmoSXz5chjMFhFQlNjy/ThYB7PATEaJ9bOe gq0QFgiRaF+3FMxmEVCVWN68hwXE5hWwlPhybRMjhC0o8WPyPbA4s4CWxPqdx5kgbHmJzWve MkOcpCCx4+xrRohlehIrp/6GqheR2PfiHSPIYgmBfewSPy9OZoFYJiDxbfIhIJsDKCErsekA 1BxJiYMrbrBMYBSbhWT1LCSrZyFZPQvJigWMLKsYRVMLkguKk9KLjPWKE3OLS/PS9ZLzczcx QmKvfwfj3QPWhxiTgdZPZJYSTc4Hxm5eSbyhsZmRhamJqbGRuaUZacJK4rxqLdaBQgLpiSWp 2ampBalF8UWlOanFhxiZODilGhhTf7ZvXMKffbX+7MQzZUlbJ7yvOLP/zj8ulx0z52zbzrpc YdqroFCeoiqBtc0fk19H17lcWyFbvl5XLLWpcU7F2kXmT66qOc9KbPM67n1ZwPWDvO0Z5mtO LvJSqycdc8yR3vLonqLqRf2a9xP3RMZ5fjhikvb4Il/lya/3OGZwXeWoutLLUZ2sxFKckWio xVxUnAgARsyiw9MCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsVy+t9jAd1ev/ZAg883uCz2Xr3LZLF2Y5XF 9tcb2SwuL7zEanHkfz+jA6vH9kNNTB6Hrqxl9JhzbB6LR9+WVYwenzfJBbBGNTDaZKQmpqQW KaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl5gAtV1IoS8wpBQoFJBYX K+nbYZoQGuKmawHTGKHrGxIE12NkgAYS1jFmrG3exFLQzl7RPPE1ewNjI1sXIyeHhICJxMvv r9ghbDGJC/fWA8W5OIQEFjFKTD3ziBXC+cUo0fHlIlgVm4CaxJcvh8FsEQFFiS3fj7ODFDEL zGSUWD/rKSNIQlggRKJ93VIwm0VAVWJ58x4WEJtXwFLiy7VNjBC2oMSPyffA4swCWhLrdx5n grDlJTavecsMcZKCxI6zrxkhlulJrJz6G6peRGLfi3eMExgFZiEZNQvJqFlIRs1C0rKAkWUV o2hqQXJBcVJ6rqFecWJucWleul5yfu4mRnBsP5PawbiyweIQowAHoxIPb8GTtkAh1sSy4src Q4wSHMxKIrw+e4FCvCmJlVWpRfnxRaU5qcWHGJOBPp3ILCWanA9MO3kl8YbGJmZGlkZmFkYm 5uakCSuJ8x5otQ4UEkhPLEnNTk0tSC2C2cLEwSnVwBheNiv9zyNTXf+MZRv5ZN+7sOQ6TD0Q /E9BZ65Tl535D+YJMwS1qh7N5WmecPhymU6k2rm+1uc6Pu8v8USZTWuz+9p4beayYAa7R1YM R2ySl8/5n5P42LJahe/qHOWdMsI/1h7/YPV/8exXypsr2f/VMuYe0GSLFJxZbpHGemHZg+9b WtdYWSqxFGckGmoxFxUnAgCwgOWeMQMAAA== 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/sdhci-pltfm.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index cd0f1f6..252d1ce 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -197,7 +197,6 @@ void sdhci_pltfm_free(struct platform_device *pdev) iounmap(host->ioaddr); release_mem_region(iomem->start, resource_size(iomem)); sdhci_free_host(host); - platform_set_drvdata(pdev, NULL); } EXPORT_SYMBOL_GPL(sdhci_pltfm_free);