From patchwork Wed Jan 8 00:45:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3450851 Return-Path: X-Original-To: patchwork-linux-fbdev@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 B92DC9F374 for ; Wed, 8 Jan 2014 00:45:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3C9F20115 for ; Wed, 8 Jan 2014 00:45:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 427AB20120 for ; Wed, 8 Jan 2014 00:45:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751075AbaAHApT (ORCPT ); Tue, 7 Jan 2014 19:45:19 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:42497 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310AbaAHApR (ORCPT ); Tue, 7 Jan 2014 19:45:17 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ200G1I4RGNT00@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Wed, 08 Jan 2014 09:45:16 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 7F.E9.12635.C9F9CC25; Wed, 08 Jan 2014 09:45:16 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-ad-52cc9f9c8526 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 5A.20.29263.C9F9CC25; Wed, 08 Jan 2014 09:45:16 +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 <0MZ2000484RF7H90@mmp1.samsung.com>; Wed, 08 Jan 2014 09:45:15 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: linux-fbdev@vger.kernel.org, 'Jean-Christophe PLAGNIOL-VILLARD' , 'Jingoo Han' , 'Antonino Daplas' References: <001901cf0c0a$cb48b5e0$61da21a0$%han@samsung.com> In-reply-to: <001901cf0c0a$cb48b5e0$61da21a0$%han@samsung.com> Subject: [PATCH RESEND 2/4] video: nvidiafb: remove unnecessary pci_set_drvdata() Date: Wed, 08 Jan 2014 09:45:15 +0900 Message-id: <001a01cf0c0a$e5a7f630$b0f7e290$%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: Ac8MCsswVut/rfVlTMmgQ3JkQXU43QAAAuOg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBIsWRmVeSWpSXmKPExsVy+t8zY905888EGazuU7L42f2FzeLywkus Fif6PrBarHv4gsli/fxbbA6sHjtn3WX3eHXhDotH35ZVjB7Hb2xn8vi8SS6ANYrLJiU1J7Ms tUjfLoEr48ePtUwFx1krZv+4ydrAeIGli5GTQ0LAROLjnRZ2CFtM4sK99WxdjFwcQgLLGCU+ /pvIDlO0dfYiZojEIkaJPx+62UASQgK/GCV6F5SA2GwCahJfvhwGaxAR0JGYtKgHrIFZYBWj xIVdLUwQDbYSS3dPZwaxOQXsJI43PwEbJCwQLNHUuRTsJBYBVYn3M+6B1fMC1T958YYRwhaU +DH5HlgNs4CWxPqdx5kgbHmJzWveAs3kALpUXeLRX12IG4wkfq1tZYQoEZHY9+IdI8g9EgK3 2CX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fGCSyiuJNzQ2MTOyNDKzMDIxNydNWEmc90CrdaCQQHpiSWp2ampBahHMFiYOTqkG RhNRKc4r9tYGrccbud5XTtgu1XpwT37of5WTrzfWGvzba/ng1eRa89lO3a2cry92Vqq8/6zy aJ6AQKw6x2TWK85HyhQvpu5+qHH03Zm8DQ9STzbwX/tk5JwQzML/+1Xeit+njsZanJgmeyey 6W9/Ecv745c9nXbaThJ4zHGE+0CVVOwHj53tv5RYijMSDbWYi4oTAZ0brURIAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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 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 --- drivers/video/nvidia/nvidia.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index ff22871..def0412 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c @@ -1461,7 +1461,6 @@ static void nvidiafb_remove(struct pci_dev *pd) pci_release_regions(pd); kfree(info->pixmap.addr); framebuffer_release(info); - pci_set_drvdata(pd, NULL); NVTRACE_LEAVE(); }