From patchwork Mon May 6 06:13:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522631 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 BD9BF3FC5A for ; Mon, 6 May 2013 06:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab3EFGN4 (ORCPT ); Mon, 6 May 2013 02:13:56 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:53720 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFGN4 (ORCPT ); Mon, 6 May 2013 02:13:56 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD000UA5B6VCF0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:13:54 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id CC.5B.04074.22A47815; Mon, 06 May 2013 15:13:54 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-30-51874a221633 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D6.2A.01422.22A47815; Mon, 06 May 2013 15:13:54 +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 <0MMD00BFY5B6QC21@mmp2.samsung.com>; Mon, 06 May 2013 15:13:54 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , "'Manjunathappa, Prakash'" , 'Ido Yariv' Subject: [PATCH 05/22] mmc: davinci_mmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:13:54 +0900 Message-id: <005001ce4a20$e2ddd200$a8997600$@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: Ac5KIKUUso+r9+Q4R+24F6WYu/mmWA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsVy+t8zfV0lr/ZAg7WXDS22v97IZtH+eT6T xeWFl1gtjvzvZ7Q4umIhuwOrx6Eraxk9+rasYvQ4fmM7k8fnTXIenz7tYwtgjeKySUnNySxL LdK3S+DKuPLlEkvBf7aKiXOOMDYwfmTtYuTkkBAwkTj79i8ThC0mceHeerYuRi4OIYFljBIn f79khCla/HIVK0RiOqPEnIs/WSCcX4wSnd/nsoBUsQmoSXz5cpgdxBYRUJTY8v04O0gRs0A/ o8Tb13OZQRLCAiESi9dNBWtgEVCVuDDpFVicV8BSYtvnqewQtqDEj8n3wGqYBbQk1u88zgRh y0tsXvOWGeIkBYkdZ18zQizTk1h44iczRI2IxL4X7xhBFksIHGKXmLr+GRvEMgGJb5MPAQ3l AErISmw6ADVHUuLgihssExjFZiFZPQvJ6llIVs9CsmIBI8sqRtHUguSC4qT0IhO94sTc4tK8 dL3k/NxNjJD4m7CD8d4B60OMyUDrJzJLiSbnA+M3ryTe0NjMyMLUxNTYyNzSjDRhJXFe9Rbr QCGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2MUXOqpU8U8citrj6/oPTgs94bfB5z78ZyaLWc ZHez+Cb870dEz6yOyQXvWEpFi3/OCZ7APPGA/K45xz6/WKo7V5Hn5P/bR2782OxqrBnexebA s6H40UYtxvTvFmcFDwgt2yT/mT9KrkqtfYfPMnv7vhlNEUd0H1oUrly0WWb/ubZXcpdCU8Vn KLEUZyQaajEXFScCAKKOykjVAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPKsWRmVeSWpSXmKPExsVy+t9jQV0lr/ZAg89tehbbX29ks2j/PJ/J 4vLCS6wWR/73M1ocXbGQ3YHV49CVtYwefVtWMXocv7GdyePzJjmPT5/2sQWwRjUw2mSkJqak Fimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYAbVdSKEvMKQUKBSQW Fyvp22GaEBripmsB0xih6xsSBNdjZIAGEtYxZlz5coml4D9bxcQ5RxgbGD+ydjFyckgImEgs frkKyhaTuHBvPVsXIxeHkMB0Rok5F3+yQDi/GCU6v89lAaliE1CT+PLlMDuILSKgKLHl+3F2 kCJmgX5Gibev5zKDJIQFQiQWr5sK1sAioCpxYdIrsDivgKXEts9T2SFsQYkfk++B1TALaEms 33mcCcKWl9i85i0zxEkKEjvOvmaEWKYnsfDET2aIGhGJfS/eMU5gFJiFZNQsJKNmIRk1C0nL AkaWVYyiqQXJBcVJ6blGesWJucWleel6yfm5mxjB0f1MegfjqgaLQ4wCHIxKPLwFT9oChVgT y4orcw8xSnAwK4nw+uwFCvGmJFZWpRblxxeV5qQWH2JMBvp0IrOUaHI+MPHklcQbGpuYGVka mVkYmZibkyasJM57sNU6UEggPbEkNTs1tSC1CGYLEwenVANjtPm+s5ek392Yv/J+do/3RSsR 15OFH165x1T3LJ919fNvg89LWGN2rllgmPuj6Xcqp92erSov1qhNlXdmMrE9uH1++MKp8+z9 pyxMzZVIOHR3+Z4DUnZbv5//t9NY1WiOjusXyTXCqQU8xd++Re9fzMYlnnxDP3Nywh23yseR L14abLnvXeKgpsRSnJFoqMVcVJwIAJOkwKcyAwAA 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/davinci_mmc.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index 3946a0e..b1b8202 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -1406,7 +1406,6 @@ static int __exit davinci_mmcsd_remove(struct platform_device *pdev) { struct mmc_davinci_host *host = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); if (host) { mmc_davinci_cpufreq_deregister(host);