Message ID | 000401cf0c14$59c5d3d0$0d517b70$%han@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@kernel.org> X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6E57C9F374 for <patchwork-linux-mmc@patchwork.kernel.org>; Wed, 8 Jan 2014 01:53:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A20EB20144 for <patchwork-linux-mmc@patchwork.kernel.org>; Wed, 8 Jan 2014 01:52:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D1A5520136 for <patchwork-linux-mmc@patchwork.kernel.org>; Wed, 8 Jan 2014 01:52:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbaAHBw6 (ORCPT <rfc822;patchwork-linux-mmc@patchwork.kernel.org>); Tue, 7 Jan 2014 20:52:58 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:60818 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753907AbaAHBw5 (ORCPT <rfc822;linux-mmc@vger.kernel.org>); Tue, 7 Jan 2014 20:52:57 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ200I917W8OZD0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Wed, 08 Jan 2014 10:52:56 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id C1.FF.14803.87FACC25; Wed, 08 Jan 2014 10:52:56 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-d0-52ccaf789943 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 01.1F.29263.87FACC25; Wed, 08 Jan 2014 10:52:56 +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 <0MZ200KPL7W8SM70@mmp2.samsung.com>; Wed, 08 Jan 2014 10:52:56 +0900 (KST) From: Jingoo Han <jg1.han@samsung.com> To: 'Jiri Kosina' <jkosina@suse.cz> Cc: trivial@kernel.org, 'Chris Ball' <chris@printf.net>, linux-mmc@vger.kernel.org, 'Sonic Zhang' <sonic.zhang@analog.com>, 'Adrian Hunter' <adrian.hunter@intel.com>, 'David Cohen' <david.a.cohen@linux.intel.com>, 'Jingoo Han' <jg1.han@samsung.com> References: <000001cf0c13$dcea0570$96be1050$%han@samsung.com> In-reply-to: <000001cf0c13$dcea0570$96be1050$%han@samsung.com> Subject: [PATCH 3/3] mmc: sdhci-pci: remove unnecessary pci_set_drvdata() Date: Wed, 08 Jan 2014 10:52:56 +0900 Message-id: <000401cf0c14$59c5d3d0$0d517b70$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac8ME9ZoPCFpmDDXTKipAHxsatQZYwAAELBg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMIsWRmVeSWpSXmKPExsVy+t8zQ92K9WeCDG5flbI4+WQNm8WEy9sZ LX5evs9ucXnhJVaL3XMWs1gc+d/PaHFnazObxfv9l5kcODxeXXX0WLznJZPHplWdbB7zTgZ6 3Hi1kMmjb8sqRo8zC46we3zeJBfAEcVlk5Kak1mWWqRvl8CVcfbkIuaCJ2wVv7+9ZGxg3Mfa xcjJISFgIvGwr48ZwhaTuHBv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j87zQbiM0p YCexcUUPSxcjB4ewgKfEh7OiICaLgKrEle8SIBW8QNV/zz9lhLAFJX5MvscCYjMLaEms33mc CcKWl9i85i0zSKuEgLrEo7+6EBcYSezYeJsNokREYt+Ld4wTGIVmIZk0C8mkWUgmzULSsoCR ZRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcPp4JrWDcWWDxSFGAQ5GJR7eG2pngoRYE8uK K3MPMUpwMCuJ8B7rBgrxpiRWVqUW5ccXleakFh9iTAb6cyKzlGhyPjC15ZXEGxqbmBlZGplZ GJmYm5MmrCTOe6DVOlBIID2xJDU7NbUgtQhmCxMHp1QDo/lEAelzqu/mBtX8WHLg/6PjidXl LSp31rzWSpzcz2gUvFVkRbRW+ntRdeGD/8u/TvCesPlUA5+8TU/Coc9nopezLxVZ27/Jf9OP Cv5JVxYn9X+p8pItmHVkTj/Xn7JXvZol31eLVt9/+UhK5G5twvt5bEeCpU2EbkwUrpsyv2zl aotNBSWttkosxRmJhlrMRcWJAOUVuApjAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c index 8f75381..9f66f73 100644 --- a/drivers/mmc/host/sdhci-pci.c +++ b/drivers/mmc/host/sdhci-pci.c @@ -1609,7 +1609,6 @@ static int sdhci_pci_probe(struct pci_dev *pdev, return 0; free: - pci_set_drvdata(pdev, NULL); kfree(chip); err: @@ -1631,7 +1630,6 @@ static void sdhci_pci_remove(struct pci_dev *pdev) for (i = 0; i < chip->num_slots; i++) sdhci_pci_remove_slot(chip->slots[i]); - pci_set_drvdata(pdev, NULL); kfree(chip); }
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/mmc/host/sdhci-pci.c | 2 -- 1 file changed, 2 deletions(-)