From patchwork Thu Sep 12 06:54:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2876421 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D3FC0BF43F for ; Thu, 12 Sep 2013 06:54:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EB4A82021E for ; Thu, 12 Sep 2013 06:54:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D84EB2021C for ; Thu, 12 Sep 2013 06:54:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039Ab3ILGyz (ORCPT ); Thu, 12 Sep 2013 02:54:55 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:59394 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751819Ab3ILGyy (ORCPT ); Thu, 12 Sep 2013 02:54:54 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT000ML9376HF20@mailout4.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 12 Sep 2013 15:54:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 1F.BE.17682.D3561325; Thu, 12 Sep 2013 15:54:53 +0900 (KST) X-AuditID: cbfee68e-b7f756d000004512-08-5231653d6345 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 74.15.09055.D3561325; Thu, 12 Sep 2013 15:54:53 +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 <0MT000JVN37HGA50@mmp2.samsung.com>; Thu, 12 Sep 2013 15:54:53 +0900 (KST) From: Jingoo Han To: 'Jean-Christophe PLAGNIOL-VILLARD' Cc: 'Tomi Valkeinen' , linux-fbdev@vger.kernel.org, 'Jingoo Han' References: <001a01ceaf84$32c52d90$984f88b0$%han@samsung.com> In-reply-to: <001a01ceaf84$32c52d90$984f88b0$%han@samsung.com> Subject: [PATCH 08/21] video: i740fb: remove unnecessary pci_set_drvdata() Date: Thu, 12 Sep 2013 15:54:53 +0900 Message-id: <002201ceaf84$fc14ab80$f43e0280$%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: Ac6vhDKuTCwbnQ4aTDC9KoLwWMziagAALbKA Content-language: ko x-cr-hashedpuzzle: AnnY CK/Q C/vM HUAq Np6b VdIF ViyF Wnbe X504 aPrv gfUR hR4r lR3c lglq nZm+ nbBH; 4; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcABsAGEAZwBuAGkAbwBqAEAAagBjAHIAbwBzAG8AZgB0AC4AYwBvAG0AOwB0AG8AbQBpAC4AdgBhAGwAawBlAGkAbgBlAG4AQAB0AGkALgBjAG8AbQA=; Sosha1_v1; 7; {BD84DF23-4A83-4D65-B832-F66008887A23}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Thu, 12 Sep 2013 06:54:48 GMT; WwBQAEEAVABDAEgAIAAwADgALwAyADEAXQAgAHYAaQ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WpSXmKPExsVy+t9jQV3bVMMgg/XzNCwuL7zEanGi7wOr xbqHL5gs1s+/xebA4vHqwh0Wj74tqxg9jt/YzuTxeZNcAEtUA6NNRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr4dpgmhIW66 FjCNEbq+IUFwPUYGaCBhHWPG3dXtTAVHWCseHt3O0sB4lKWLkZNDQsBE4nlXJzOELSZx4d56 ti5GLg4hgemMEt1L7zFDOL8YJTa8+s8OUsUmoCbx5cthMFtEwE5i4cVLrCA2s0C+xJYlbWC2 kICtxNI3t8E2cALVfDm2kA3EFhbwkniybRNYDYuAqsT51xvANvMC1W/dtJQNwhaU+DH5HgvE TC2J9TuPM0HY8hKb17wFqucAulRd4tFfXYgTjCSWNM5lhCgRkdj34h0jyM0SAjNYJd52PmOF +MxU4tyVJSwTGEVmIVkxC8mKWUhWzEIyawEjyypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2M 4DTxTGoH48oGi0OMAhyMSjy8HbMMgoRYE8uKK3MPMUpwMCuJ8MabGwYJ8aYkVlalFuXHF5Xm pBYfYkwGhsBEZinR5HxgCssriTc0NjEzsjQyszAyMTcnTVhJnPdAq3WgkEB6YklqdmpqQWoR zBYmDk6pBsbMdH62uxFv2hefKv+oLePip/Wke9tpVQvXQNG9vWu7PJafFTovf+9T3tY1MQwv +l5HRt2ontIupWcw/UbutdOrV82WcvDTzJ4+7bZTpnv6jpuxj+IC/f74TuPSskrgD3aZ92de mf76mGzBKyvWeW2Q2HPeYcuSvBdfLsZ6djR5vrofbBddG6TEUpyRaKjFXFScCADUQ3e5VwMA AA== 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/i740fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c index 6c48388..6501ac1 100644 --- a/drivers/video/i740fb.c +++ b/drivers/video/i740fb.c @@ -1194,7 +1194,6 @@ static void i740fb_remove(struct pci_dev *dev) pci_iounmap(dev, info->screen_base); pci_release_regions(dev); /* pci_disable_device(dev); */ - pci_set_drvdata(dev, NULL); framebuffer_release(info); } }