From patchwork Mon May 6 06:38:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522781 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 9EEE83FC5A for ; Mon, 6 May 2013 06:38:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752779Ab3EFGia (ORCPT ); Mon, 6 May 2013 02:38:30 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:13415 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777Ab3EFGi3 (ORCPT ); Mon, 6 May 2013 02:38:29 -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 <0MMD004LS6F9K2M0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:38:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E8.3F.13955.3EF47815; Mon, 06 May 2013 15:38:27 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-28-51874fe36f3f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E2.E2.08957.3EF47815; Mon, 06 May 2013 15:38:27 +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 <0MMD00HKF6G3FG20@mmp1.samsung.com>; Mon, 06 May 2013 15:38:27 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Guennadi Liakhovetski' Subject: [PATCH 20/22] mmc: sh_mmcif: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:38:27 +0900 Message-id: <005f01ce4a24$50b32980$f2197c80$@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: Ac5KJDHRafIV4+DpTEa5L67MwF3PBQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t8zfd3H/u2BBv1LTSy2v97IZvF+4zwm i8sLL7FaHPnfz+jA4vHhY5zHoStrGT36tqxi9Pi8SS6AJYrLJiU1J7MstUjfLoEr49LTO6wF 39gqpr9dytzA+Jy1i5GTQ0LARGL+r1uMELaYxIV769m6GLk4hASWMUps+72ZBaZozb1TjBCJ RYwSi2/fg3J+MUocn/aPGaSKTUBN4suXw+wgtoiAosSW78eBbA4OZoEiiTcvHUHCwgL+Ehuu 3WQDsVkEVCXO9W4Ba+UVsJRY9fkTO4QtKPFj8j2wxcwCWhLrdx5ngrDlJTavecsMcZCCxI6z rxkhVulJPL3ZxQhRIyKx78U7sNskBLaxS7y93AW1TEDi2+RDLCD3SAjISmw6ADVHUuLgihss ExjFZiFZPQvJ6llIVs9CsmIBI8sqRtHUguSC4qT0ImO94sTc4tK8dL3k/NxNjJAo69/BePeA 9SHGZKD1E5mlRJPzgVGaVxJvaGxmZGFqYmpsZG5pRpqwkjivWot1oJBAemJJanZqakFqUXxR aU5q8SFGJg5OqQbGdj5L7ZJPq68y/tSo85vud/b0tt52X5f2SMlOa5NvPQW/dtUmbGY+lzL5 ne/NMxNMnpWfbJzcyOwb+EqYLdTz0maTO4XdCuH6034HTFuiFKGQmfKhfu3Xs3clbJyXrr32 +u6GGRcnRPzm37bre+wJncULTtUbTOye/dl/8YyQXQ9O7M27leyWpMRSnJFoqMVcVJwIAG7y ddvIAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsVy+t9jAd3H/u2BBrtOGVhsf72RzeL9xnlM FpcXXmK1OPK/n9GBxePDxziPQ1fWMnr0bVnF6PF5k1wAS1QDo01GamJKapFCal5yfkpmXrqt kndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO0EolhbLEnFKgUEBicbGSvh2mCaEhbroW MI0Rur4hQXA9RgZoIGEdY8alp3dYC76xVUx/u5S5gfE5axcjJ4eEgInEmnunGCFsMYkL99az dTFycQgJLGKUWHz7HiOE84tR4vi0f8wgVWwCahJfvhxmB7FFBBQltnw/DmRzcDALFEm8eekI EhYW8JfYcO0mG4jNIqAqca53C1grr4ClxKrPn9ghbEGJH5PvsYDYzAJaEut3HmeCsOUlNq95 ywxxkILEjrOvGSFW6Uk8vdnFCFEjIrHvxTvGCYwCs5CMmoVk1Cwko2YhaVnAyLKKUTS1ILmg OCk911CvODG3uDQvXS85P3cTIziGn0ntYFzZYHGIUYCDUYmHt+BJW6AQa2JZcWXuIUYJDmYl EV6fvUAh3pTEyqrUovz4otKc1OJDjMlAn05klhJNzgeml7ySeENjEzMjSyMzCyMTc3PShJXE eQ+0WgcKCaQnlqRmp6YWpBbBbGHi4JRqYNzneTJT0EYn5jt7QnHFpMdrv+se2Lgu16jN7L+3 QPD6eW2Tjm05PTF96ye+efon065F/P8lUW72Z+HKYqtTszv+X5FeK79a6ZG7/fEds58vNDhr J7ns3LH0yM8yKcbzvt7fxvLObLrfjP7/V8/7vwiZF/k9SXqqcOIDwTqPiuVxCkFPp864dlBA iaU4I9FQi7moOBEA67BohiUDAAA= 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/sh_mmcif.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index ba76a53..117a1f7 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -1501,8 +1501,6 @@ static int sh_mmcif_remove(struct platform_device *pdev) if (irq[1] >= 0) free_irq(irq[1], host); - platform_set_drvdata(pdev, NULL); - clk_disable(host->hclk); mmc_free_host(host->mmc); pm_runtime_put_sync(&pdev->dev);