From patchwork Thu Sep 12 06:56:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2876441 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 8DC469F478 for ; Thu, 12 Sep 2013 06:56:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B945A202C8 for ; Thu, 12 Sep 2013 06:56:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 736BB2021E for ; Thu, 12 Sep 2013 06:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751346Ab3ILG4C (ORCPT ); Thu, 12 Sep 2013 02:56:02 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:28849 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753898Ab3ILG4B (ORCPT ); Thu, 12 Sep 2013 02:56:01 -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 <0MT0000GS39CJ3P0@mailout1.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 12 Sep 2013 15:56:00 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 1F.B7.20109.08561325; Thu, 12 Sep 2013 15:56:00 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-54-5231658058f6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id DC.65.09055.08561325; Thu, 12 Sep 2013 15:56:00 +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 <0MT0002IU39CG5J0@mmp1.samsung.com>; Thu, 12 Sep 2013 15:56:00 +0900 (KST) From: Jingoo Han To: 'Jean-Christophe PLAGNIOL-VILLARD' Cc: 'Tomi Valkeinen' , linux-fbdev@vger.kernel.org, 'Jingoo Han' , 'Maik Broemme' References: <001a01ceaf84$32c52d90$984f88b0$%han@samsung.com> In-reply-to: <001a01ceaf84$32c52d90$984f88b0$%han@samsung.com> Subject: [PATCH 10/21] video: intelfb: remove unnecessary pci_set_drvdata() Date: Thu, 12 Sep 2013 15:56:00 +0900 Message-id: <002401ceaf85$23f60540$6be20fc0$%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: Ac6vhDKuTCwbnQ4aTDC9KoLwWMziagAANutA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsVy+t8zI92GVMMgg2NXFSwuL7zEanGi7wOr RecHZYt1D18wWayff4vNgdXj1YU7LB7z2xawePRtWcXocfzGdiaPz5vkAlijuGxSUnMyy1KL 9O0SuDJ6J1QUvGCteH3wIXsD4weWLkZODgkBE4mGeTuZIGwxiQv31rN1MXJxCAksY5To+nCa Haaot/kjC0RiEaPE3t0zoJxfjBILdk1hBaliE1CT+PLlMFiHiICdxMKLl1hBipgFZjBKdJ/v ZgRJCAnYSix9cxtsNydQ0ZdjC9lAbGEBb4mTny6C2SwCqhKNN/aADeUFqj+09gwThC0o8WPy PbBeZgEtifU7jzNB2PISm9e8Ze5i5AA6VV3i0V9dEFNEwEji4mduiAoRiX0v3jGCnCMhcItd 4ujv18wQqwQkvk0+xALRKiux6QAzxMOSEg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YklqdmpqQWpRTBbmDg4pRoY g+IXbjO/4hay3T8tI/ee8JUzyZv2Fdm8Lrn75//WzxeNlqqIaW+z0N/UF9MiqqJ/N+H1R/Em 8eB9iy5r/JrS5BP0w3Dd94+mIgkhsvMa93ifiy5i/v5GXvNhauFHXblZCVcas65HzmiYof99 Q/Yd9kjj8CJF48lpC6rXMIUfkT822eMt7+P5SizFGYmGWsxFxYkAZyEp20YDAAA= 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=-7.8 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/intelfb/intelfbdrv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index 8209e46..b847d53 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c @@ -931,8 +931,6 @@ static void intelfb_pci_unregister(struct pci_dev *pdev) return; cleanup(dinfo); - - pci_set_drvdata(pdev, NULL); } /***************************************************************