From patchwork Mon May 6 06:28: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: 2522711 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 7E8E5DF230 for ; Mon, 6 May 2013 06:28:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab3EFG2X (ORCPT ); Mon, 6 May 2013 02:28:23 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:11292 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117Ab3EFG2X (ORCPT ); Mon, 6 May 2013 02:28:23 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD003GN5Z5FZO0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:28:22 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id CE.C2.04074.68D47815; Mon, 06 May 2013 15:28:22 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-13-51874d866314 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 59.3E.01422.58D47815; Mon, 06 May 2013 15:28: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 <0MMD00EDO5Z91201@mmp2.samsung.com>; Mon, 06 May 2013 15:28:21 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Daniel Mack' Subject: [PATCH 13/22] mmc: pxamci: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:28:21 +0900 Message-id: <005801ce4a22$e7bb7a50$b7326ef0$@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: Ac5KIsclMR5aGRcbSA2FwXLg27T0EA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsVy+t8zI9023/ZAg43NTBbbX29ks7i88BKr xZH//YwWnTPWMzmweOycdZfd49CVtYwefVtWMXp83iQXwBLFZZOSmpNZllqkb5fAlXHx2i/m ghb2iqXLprM0MD5n7WLk5JAQMJG4sf4OM4QtJnHh3nq2LkYuDiGBZYwSv1rWssMUTdl1EqxB SGA6o8TEdzwQRb8YJT7/OMEEkmATUJP48uUwWIOIgKLElu/HwWxmgWSJ7WfegtUIC/hK7J/y FGwQi4CqxMZjG1hAbF4BS4ld676wQ9iCEj8m32OB6NWSWL/zOBOELS+xec1bqEsVJHacfc0I sUtP4uCkX1D1IhL7XrxjBDlOQmATu8SPb51sEMsEJL5NPgRUxAGUkJXYdABqjqTEwRU3WCYw is1CsnoWktWzkKyehWTFAkaWVYyiqQXJBcVJ6UUmesWJucWleel6yfm5mxghcTZhB+O9A9aH GJOB1k9klhJNzgfGaV5JvKGxmZGFqYmpsZG5pRlpwkrivOot1oFCAumJJanZqakFqUXxRaU5 qcWHGJk4OKUaGBlSLM8t+Tb9z86txdaGz4wXmS5xWehxxS9cRvrVsb+tMx+ELS7zbj8W6zvl Ht8/bvG3f2NZ1eIW9M0/XXj6S3/UQw3b65c5Nt6Vrbrt4ljWvDlPhK1TVXUeG7/8+xedzg+N ul2dq/gVDvFzXL/2XHj/Bq+ru60+OG3ndOY7//ptn3L0+/mvLJVYijMSDbWYi4oTAYuu0O3J AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMKsWRmVeSWpSXmKPExsVy+t9jQd1W3/ZAg3dfrCy2v97IZnF54SVW iyP/+xktOmesZ3Jg8dg56y67x6Eraxk9+rasYvT4vEkugCWqgdEmIzUxJbVIITUvOT8lMy/d Vsk7ON453tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB2inkkJZYk4pUCggsbhYSd8O04TQEDdd C5jGCF3fkCC4HiMDNJCwjjHj4rVfzAUt7BVLl01naWB8ztrFyMkhIWAiMWXXSShbTOLCvfVs ILaQwHRGiYnveLoYuYDsX4wSn3+cYAJJsAmoSXz5cpgdxBYRUJTY8v04mM0skCyx/cxbsBph AV+J/VOegg1lEVCV2HhsAwuIzStgKbFr3Rd2CFtQ4sfkeywQvVoS63ceZ4Kw5SU2r3nLDHGQ gsSOs68ZIXbpSRyc9AuqXkRi34t3jBMYBWYhGTULyahZSEbNQtKygJFlFaNoakFyQXFSeq6R XnFibnFpXrpecn7uJkZwFD+T3sG4qsHiEKMAB6MSD2/Bk7ZAIdbEsuLK3EOMEhzMSiK8PnuB QrwpiZVVqUX58UWlOanFhxiTgT6dyCwlmpwPTDB5JfGGxiZmRpZGZhZGJubmpAkrifMebLUO FBJITyxJzU5NLUgtgtnCxMEp1cAoHzX1Hf/2u0tU/afdX1qj8dB92+XvLh8KTt+b0my3Js1x 7Qaua3Y3Nhx4c3r2sRXrks/LbP7Hn29hGlx6OWbJp/zeD88mH9heOeWhg/vRAqVM+RPbvz9l 9yue/eNQQIxCeumvpcanLjxc85nLZqGkyu43H+bL3xB5a/ROSME3R/zqp4JVmX9/f1BiKc5I NNRiLipOBAAraVz2JgMAAA== 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/pxamci.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 2b2f65a..847b199 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -834,8 +834,6 @@ static int pxamci_remove(struct platform_device *pdev) struct mmc_host *mmc = platform_get_drvdata(pdev); int gpio_cd = -1, gpio_ro = -1, gpio_power = -1; - platform_set_drvdata(pdev, NULL); - if (mmc) { struct pxamci_host *host = mmc_priv(mmc);