From patchwork Mon May 6 06:29:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522721 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 BB58FDF230 for ; Mon, 6 May 2013 06:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719Ab3EFG3z (ORCPT ); Mon, 6 May 2013 02:29:55 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:55473 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483Ab3EFG3y (ORCPT ); Mon, 6 May 2013 02:29:54 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD001LN61PVX40@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 06 May 2013 15:29:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 3A.EA.13955.FDD47815; Mon, 06 May 2013 15:29:51 +0900 (KST) X-AuditID: cbfee68f-b7f066d000003683-35-51874ddfef6b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3D.BF.08957.FDD47815; Mon, 06 May 2013 15:29:51 +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 <0MMD00F9A61RRVA0@mmp1.samsung.com>; Mon, 06 May 2013 15:29:51 +0900 (KST) From: Jingoo Han To: 'Chris Ball' Cc: linux-mmc@vger.kernel.org, Jingoo Han , 'Wei WANG' , 'Roger Tseng' Subject: mmc: rtsx_pci_sdmmc: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 15:29:51 +0900 Message-id: <005901ce4a23$1d1a80b0$574f8210$@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: Ac5KIu21Fj2FCh4kSuCwFTuvOV+dcw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zQ937vu2BBv2rtSy2v97IZnF54SVW iyP/+xktbv+cyW6xct1pNgdWj0NX1jJ6/NjwjtHj8dvN7B59W1YxenzeJBfAGsVlk5Kak1mW WqRvl8CVMWu6UsFM9orvh80aGDvYuhg5OSQETCT2ty9igrDFJC7cWw8U5+IQEljGKNF04Q0z TNH5M9uhEosYJf7f+s4C4fxilHi76h4LSBWbgJrEly+H2UFsEQFFiS3fj7ODFDEL9DFK3G1b ADZKWMBd4s2h52A2i4CqxO+G82A2r4ClxNkDk1ggbEGJH5MhhjILaEms33mcCcKWl9i85i3U SQoSO86+ZoRYpiexf/sGNogaEYl9L94xgiyWENjHLjHp/TomiGUCEt8mHwIaygGUkJXYdABq jqTEwRU3WCYwis1CsnoWktWzkKyehWTFAkaWVYyiqQXJBcVJ6UXGesWJucWleel6yfm5mxgh sde/g/HuAetDjMlA6ycyS4km5wNjN68k3tDYzMjC1MTU2Mjc0ow0YSVxXrUW60AhgfTEktTs 1NSC1KL4otKc1OJDjEwcnFINjILyXwqn9yY+2cb1aP7Nc9JvbC40TLZ06Oh7/PdEAo961BXz 2pazHFf5dO9krH6sf2OzZcHiun/5PPEKntcny0hmx0Wo88vN3ZuSaZnnX5NfOufyehmXmbMe bT6QWha4fsdh0+NN+q9iH1zrkHaPjI8/Ixg0N91Q2PnwR41ZmTerX/166HDrvRJLcUaioRZz UXEiAJBXb0PTAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLKsWRmVeSWpSXmKPExsVy+t9jAd37vu2BBvNmqVlsf72RzeLywkus Fkf+9zNa3P45k91i5brTbA6sHoeurGX0+LHhHaPH47eb2T36tqxi9Pi8SS6ANaqB0SYjNTEl tUghNS85PyUzL91WyTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMHaLuSQlliTilQKCCx uFhJ3w7ThNAQN10LmMYIXd+QILgeIwM0kLCOMWPWdKWCmewV3w+bNTB2sHUxcnJICJhInD+z HcoWk7hwbz2QzcUhJLCIUeL/re8sEM4vRom3q+6xgFSxCahJfPlymB3EFhFQlNjy/Tg7SBGz QB+jxN22BcwgCWEBd4k3h56D2SwCqhK/G86D2bwClhJnD0xigbAFJX5MhhjKLKAlsX7ncSYI W15i85q3zBAnKUjsOPuaEWKZnsT+7RvYIGpEJPa9eMc4gVFgFpJRs5CMmoVk1CwkLQsYWVYx iqYWJBcUJ6XnGuoVJ+YWl+al6yXn525iBEf2M6kdjCsbLA4xCnAwKvHwFjxpCxRiTSwrrsw9 xCjBwawkwuuzFyjEm5JYWZValB9fVJqTWnyIMRno04nMUqLJ+cCkk1cSb2hsYmZkaWRmYWRi bk6asJI474FW60AhgfTEktTs1NSC1CKYLUwcnFINjK4pe9/FndD/WaERKf177R1rdRbjmJeP e4Knr8w7vHDDxemFZYmLlHL3vt7b4lsadKN45eJIoQNl7/kOTLnaYPlq7bIfVby6ebGLHxz7 G8Mf+c1nhsrtrzl5u8IV5rD1Zc/dvPCV2DRf10jh9y9rDtiF8PYdCO0RVPzxuOeaTZMVw64Z e9N9HiqxFGckGmoxFxUnAgA7LEIPMAMAAA== 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/rtsx_pci_sdmmc.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index ad13f42..82a35b9 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c @@ -1316,8 +1316,6 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev) mmc_remove_host(mmc); mmc_free_host(mmc); - platform_set_drvdata(pdev, NULL); - dev_dbg(&(pdev->dev), ": Realtek PCI-E SDMMC controller has been removed\n");