From patchwork Mon May 6 06:40:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522801 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 239683FC5A for ; Mon, 6 May 2013 06:40:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783Ab3EFGka (ORCPT ); Mon, 6 May 2013 02:40:30 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:58935 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777Ab3EFGk3 (ORCPT ); Mon, 6 May 2013 02:40:29 -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 <0MMD0009U6HQVCH0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:40:28 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F4.68.04074.C5057815; Mon, 06 May 2013 15:40:28 +0900 (KST) X-AuditID: cbfee690-b7f136d000000fea-5d-5187505ccd72 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6C.53.08957.C5057815; Mon, 06 May 2013 15:40:28 +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 <0MMD00JTF6JG5780@mmp2.samsung.com>; Mon, 06 May 2013 15:40:28 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , Tony Prisk Subject: [PATCH 22/22] mmc: wmt-sdmmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:40:28 +0900 Message-id: <006101ce4a24$98be27c0$ca3a7740$@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: Ac5KJH7EwNBpHOeWTOqtHnm37AsLIA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t8zA92YgPZAgycNShbbX29ks7i88BKr xZH//YwWLZdXMDuweBy6spbR4/z/FnaPvi2rGD0+b5ILYInisklJzcksSy3St0vgyui5tZS5 4BRbxYl9F5kbGPeydjFyckgImEi0Nr2CssUkLtxbz9bFyMUhJLCMUeLQpQtMMEVb1jSxQySm M0oc3/IZquoXo8S0lVfBqtgE1CS+fDnMDmKLCChKbPl+HMxmFkiVuD73DEsXIweHsECAxPlP RSBhFgFVia4jEAt4BSwlWmZOZYawBSV+TL7HAtGqJbF+53EmCFteYvOat8wQBylI7Dj7mhFk pIiAnsS2P8EQJSIS+168YwQ5TUJgE7vEnh2z2CF2CUh8m3wI7AQJAVmJTQegxkhKHFxxg2UC o9gsJJtnIdk8C8nmWUhWLGBkWcUomlqQXFCclF5kolecmFtcmpeul5yfu4kREmUTdjDeO2B9 iDEZaP1EZinR5HxglOaVxBsamxlZmJqYGhuZW5qRJqwkzqveYh0oJJCeWJKanZpakFoUX1Sa k1p8iJGJg1OqgXG6fugDPb7+YneF2tP3frpJZS+6u/G1159bgdHTJK7EdUvtui57OujZqxLn P1u+60nNlak8MXNFWIlFRlhkX0TT7xoHuwWTM4OXrrhW8ybKWFIhYCb/3niFiMi5Zx7VtJdd O96x+7+S/P/G038v3Qm98Vm+N259dbrhq5tGFw4qLj2xLSS6R1iJpTgj0VCLuag4EQAfUK/e yAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEKsWRmVeSWpSXmKPExsVy+t9jQd2YgPZAg4kr5Sy2v97IZnF54SVW iyP/+xktWi6vYHZg8Th0ZS2jx/n/LewefVtWMXp83iQXwBLVwGiTkZqYklqkkJqXnJ+SmZdu q+QdHO8cb2pmYKhraGlhrqSQl5ibaqvk4hOg65aZA7RTSaEsMacUKBSQWFyspG+HaUJoiJuu BUxjhK5vSBBcj5EBGkhYx5jRc2spc8EptooT+y4yNzDuZe1i5OSQEDCR2LKmiR3CFpO4cG89 WxcjF4eQwHRGieNbPkM5vxglpq28ygRSxSagJvHly2GwDhEBRYkt34+D2cwCqRLX555h6WLk 4BAWCJA4/6kIJMwioCrRdeQCWCuvgKVEy8ypzBC2oMSPyfdYIFq1JNbvPM4EYctLbF7zlhni IAWJHWdfM4KMFBHQk9j2JxiiRERi34t3jBMYBWYhmTQLyaRZSCbNQtKygJFlFaNoakFyQXFS eq6hXnFibnFpXrpecn7uJkZwDD+T2sG4ssHiEKMAB6MSD2/Bk7ZAIdbEsuLK3EOMEhzMSiK8 PnuBQrwpiZVVqUX58UWlOanFhxiTgR6dyCwlmpwPTC95JfGGxiZmRpZGZhZGJubmpAkrifMe aLUOFBJITyxJzU5NLUgtgtnCxMEp1cDIzRx1+d2De7lJiqnffi6coz65rJ3p+N8Hoob7b5VZ vzA8KvjxcJKtjv6l65cbvx3eWaiXtXbnBsv9H48eaDz1ZfciZlYrl8bzVx8xXODicbBnmlI+ 57F4TMXu1hCzNpWlz+o/HHFlrgx1+Piu89K+t98Fs56Wa8/5J/bjXmMW99La6Qc/y7ILK7EU ZyQaajEXFScCAIhriy0lAwAA 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 Acked-by: Tony Prisk --- drivers/mmc/host/wmt-sdmmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 442f576..34231d5 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c @@ -927,8 +927,6 @@ static int wmt_mci_remove(struct platform_device *pdev) mmc_free_host(mmc); - platform_set_drvdata(pdev, NULL); - dev_info(&pdev->dev, "WMT MCI device removed\n"); return 0;