From patchwork Mon May 6 06:05:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522591 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 7D7E93FC5A for ; Mon, 6 May 2013 06:05:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752595Ab3EFGFX (ORCPT ); Mon, 6 May 2013 02:05:23 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:52016 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572Ab3EFGFX (ORCPT ); Mon, 6 May 2013 02:05:23 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD00GFE4VHLFJ0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:05:21 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 1D.3F.19730.12847815; Mon, 06 May 2013 15:05:21 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-b5-5187482161bf Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6B.E8.08957.12847815; Mon, 06 May 2013 15:05:21 +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 <0MMD00B3Q4WXQC01@mmp2.samsung.com>; Mon, 06 May 2013 15:05:21 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, 'Jingoo Han' Subject: [PATCH 01/22] mmc: android-goldfish: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:05:21 +0900 Message-id: <004b01ce4a1f$b0dbcec0$12936c40$@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: Ac5KHz4bTrP9z92ASC2hu5KBmtUahw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFIsWRmVeSWpSXmKPExsVy+t8zA11Fj/ZAg6/fxS22v97IZnF54SVW iyP/+xkdmD0OXVnL6NG3ZRWjx+dNcgHMUVw2Kak5mWWpRfp2CVwZ909dYiuYxF5xZq1hA2ML WxcjJ4eEgInEw0VLmCBsMYkL99YDxbk4hASWMUrs+d/C2MXIAVb0eL0TRHw6o0TvxZ1gzUIC vxglPh4rBrHZBNQkvnw5zA5iiwgoSmz5fhzMZhZwlPg+6SYjiC0sECmxbsMssF4WAVWJDT9/ g9m8ApYSt29OYISwBSV+TL7HAtGrJbF+53EmCFteYvOat8wQhypI7Dj7mhFil57EsX9voOpF JPa9eMcIcqiEwCJ2iX+NbawQywQkvk0+xALxjKzEpgNQcyQlDq64wTKBUWwWktWzkKyehWT1 LCQrFjCyrGIUTS1ILihOSi8y0itOzC0uzUvXS87P3cQIiae+HYw3D1gfYkwGWj+RWUo0OR8Y j3kl8YbGZkYWpiamxkbmlmakCSuJ86q1WAcKCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRqYExY KSfes2S1yqZbWmUHO5jmc36KDmtZHt140lVFKvTYk+OheRMn9Gix7LH3Wm5+91/j51y51zG/ ujZUKzlt9FbMirx7RlPjO499LC+v+JlLk5087l15veqRGc8vGTPR1yXHvMLlIqMU/vqUl75d tf8kV2HXacdlU9dvNjh9iu1lgdWS3hdSP5RYijMSDbWYi4oTAe2v4Jm9AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42I5/e+xoK6iR3ugweJtIhbbX29ks7i88BKr xZH//YwOzB6Hrqxl9OjbsorR4/MmuQDmqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwND XUNLC3MlhbzE3FRbJRefAF23zBygTUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqM DNBAwjrGjPunLrEVTGKvOLPWsIGxha2LkYNDQsBE4vF6py5GTiBTTOLCvfVAYS4OIYHpjBK9 F3eygSSEBH4xSnw8VgxiswmoSXz5cpgdxBYRUJTY8v04mM0s4CjxfdJNRhBbWCBSYt2GWWC9 LAKqEht+/gazeQUsJW7fnMAIYQtK/Jh8jwWiV0ti/c7jTBC2vMTmNW+ZIQ5SkNhx9jUjxC49 iWP/3kDVi0jse/GOcQKjwCwko2YhGTULyahZSFoWMLKsYhRNLUguKE5KzzXUK07MLS7NS9dL zs/dxAiO1mdSOxhXNlgcYhTgYFTi4S140hYoxJpYVlyZe4hRgoNZSYTXZy9QiDclsbIqtSg/ vqg0J7X4EGMy0KcTmaVEk/OBiSSvJN7Q2MTMyNLIzMLIxNycNGElcd4DrdaBQgLpiSWp2amp BalFMFuYODilGhgdLnz7diI7/rP3h60XvvbGe318uoD7xkr/fQaXy3/5Cuz5amISPuNssuCb axyb9q44eufaskq7TeW2RlF+JWYpvzwWWOwPXb1qz/pnJ57VTz59K/bHrN0e/yUu3KzmvThh 2YpDcw3626+l8O830lli9ETkN9PZ59clX76yyUlgCNH/LmVTfuR+qhJLcUaioRZzUXEiAEOy Bk4aAwAA 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/android-goldfish.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/android-goldfish.c b/drivers/mmc/host/android-goldfish.c index 7780c14..8b4e20a 100644 --- a/drivers/mmc/host/android-goldfish.c +++ b/drivers/mmc/host/android-goldfish.c @@ -546,8 +546,6 @@ static int goldfish_mmc_remove(struct platform_device *pdev) { struct goldfish_mmc_host *host = platform_get_drvdata(pdev); - platform_set_drvdata(pdev, NULL); - BUG_ON(host == NULL); mmc_remove_host(host->mmc);