From patchwork Mon May 6 06:26:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522701 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 E01A9DF230 for ; Mon, 6 May 2013 06:27:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752489Ab3EFG1D (ORCPT ); Mon, 6 May 2013 02:27:03 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:11016 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752504Ab3EFG1B (ORCPT ); Mon, 6 May 2013 02:27:01 -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 <0MMD0008F5WYHFO0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:27:00 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 55.89.13955.33D47815; Mon, 06 May 2013 15:26:59 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-f6-51874d33bace Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 65.DD.01422.33D47815; Mon, 06 May 2013 15:26:59 +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 <0MMD00JM25WZHQ30@mmp2.samsung.com>; Mon, 06 May 2013 15:26:59 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Balaji T K' , Venkatraman S , "'Hebbar, Gururaja'" Subject: [PATCH 12/22] mmc: omap_hsmmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:26:59 +0900 Message-id: <005701ce4a22$b6adccb0$24096610$@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: Ac5KInh+RzFgtShQTIGusdNjg1VCtg== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zY11j3/ZAg/aTOhZTJ29ns9j+eiOb xbLudywWlxdeYrU48r+f0aJjb54Dm8ehK2sZPfq2rGL0OH5jO5PH501yASxRXDYpqTmZZalF +nYJXBnnpkxkKVjDUdH/8ABbA+N/ti5GTg4JAROJFV+Xs0LYYhIX7q0HinNxCAksY5T49Ps1 C0zRo9172SES0xklPp/fwwrh/GKUeLdvCyNIFZuAmsSXL4fZQWwRAUWJLd+Pg9nMApsZJa7P SQOxhQWCJbYt/s8EYrMIqEp0fd3IDGLzClhKzNhwnAXCFpT4MfkeC0SvlsT6nceZIGx5ic1r 3jJDXKQgsePsa0aIXXoSj2dvh6oXkdj34h0jyHESArvYJW6//ssCsUxA4tvkQ0A2B1BCVmLT Aag5khIHV9xgmcAoNgvJ6llIVs9CsnoWkhULGFlWMYqmFiQXFCelFxnrFSfmFpfmpesl5+du YoTEXv8OxrsHrA8xJgOtn8gsJZqcD4zdvJJ4Q2MzIwtTE1NjI3NLM9KElcR51VqsA4UE0hNL UrNTUwtSi+KLSnNSiw8xMnFwSjUwShXbl/3u7V0QyjHtuuNGsQ0rSxeprJti9IvVzcf0P1cT v9BHa81Qx9WfGM4VbJdqvyl3nP2MqwrXggyBp8f3s+trsERPPj1twmZD2w374/038ZeECd2v NDnvpTj58PykR86VrqlvbycybvlWe/RI/3kxlbtbY1rjbgR8bZyofXz+vQ9czPoxSizFGYmG WsxFxYkArKxFY9MCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jQV1j3/ZAgzlnNSymTt7OZrH99UY2 i2Xd71gsLi+8xGpx5H8/o0XH3jwHNo9DV9YyevRtWcXocfzGdiaPz5vkAliiGhhtMlITU1KL FFLzkvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4CWKymUJeaUAoUCEouL lfTtME0IDXHTtYBpjND1DQmC6zEyQAMJ6xgzzk2ZyFKwhqOi/+EBtgbG/2xdjJwcEgImEo92 72WHsMUkLtxbDxTn4hASmM4o8fn8HlYI5xejxLt9WxhBqtgE1CS+fDkM1iEioCix5ftxMJtZ YDOjxPU5aSC2sECwxLbF/5lAbBYBVYmurxuZQWxeAUuJGRuOs0DYghI/Jt9jgejVkli/8zgT hC0vsXnNW2aIixQkdpx9zQixS0/i8eztUPUiEvtevGOcwCgwC8moWUhGzUIyahaSlgWMLKsY RVMLkguKk9JzjfSKE3OLS/PS9ZLzczcxgiP7mfQOxlUNFocYBTgYlXh4C560BQqxJpYVV+Ye YpTgYFYS4fXZCxTiTUmsrEotyo8vKs1JLT7EmAz06URmKdHkfGDSySuJNzQ2MTOyNDKzMDIx NydNWEmc92CrdaCQQHpiSWp2ampBahHMFiYOTqkGRrd5Er7Bd/vUt+ZHb3o16SHL5BMmwi8X 1cZkck2+5P2w5wTLoY/cqzZf4JYRFu3sWXzQQDji/PfZwgF2c2cvPzK3WbG557fzp56dS4uf unmKuxZr6pcum5m/root3nfxMaUlr/eHLomuZ/n/WXlS/6KqYC+2P/mKK6KFOdqtY2dxFK/0 tuZarMRSnJFoqMVcVJwIAEy31t4wAwAA 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/omap_hsmmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 6e44025..61bb87a 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2034,7 +2034,6 @@ err_irq: } err1: iounmap(host->base); - platform_set_drvdata(pdev, NULL); mmc_free_host(mmc); err_alloc: omap_hsmmc_gpio_free(pdata); @@ -2080,7 +2079,6 @@ static int omap_hsmmc_remove(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (res) release_mem_region(res->start, resource_size(res)); - platform_set_drvdata(pdev, NULL); return 0; }