From patchwork Wed Jan 8 00:46:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3450871 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 A565BC02DC for ; Wed, 8 Jan 2014 00:46:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D985C20120 for ; Wed, 8 Jan 2014 00:46:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C19F20115 for ; Wed, 8 Jan 2014 00:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753515AbaAHAq0 (ORCPT ); Tue, 7 Jan 2014 19:46:26 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:42739 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752310AbaAHAqZ (ORCPT ); Tue, 7 Jan 2014 19:46:25 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ200G694TDNT00@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Wed, 08 Jan 2014 09:46:25 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.48]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 99.37.09028.0EF9CC25; Wed, 08 Jan 2014 09:46:24 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-3b-52cc9fe096e3 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 57.60.29263.0EF9CC25; Wed, 08 Jan 2014 09:46:24 +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 <0MZ200KSF4TCSR20@mmp2.samsung.com>; Wed, 08 Jan 2014 09:46:24 +0900 (KST) From: Jingoo Han To: 'Tomi Valkeinen' Cc: linux-fbdev@vger.kernel.org, 'Jean-Christophe PLAGNIOL-VILLARD' , 'Jingoo Han' References: <001901cf0c0a$cb48b5e0$61da21a0$%han@samsung.com> In-reply-to: <001901cf0c0a$cb48b5e0$61da21a0$%han@samsung.com> Subject: [PATCH RESEND 4/4] video: vmlfb: remove unnecessary pci_set_drvdata() Date: Wed, 08 Jan 2014 09:46:24 +0900 Message-id: <001c01cf0c0b$0ea4f920$2beeeb60$%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/rfVlTMmgQ3JkQXU43QAAC+7g Content-language: ko x-cr-hashedpuzzle: AS34 BOKl CEPz FGKo GQKg JGnR Jp0T KkFj SAoa TWqM VslQ Ybc7 cr4K hOiC hmj4 iN3W; 4; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAGYAYgBkAGUAdgBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcABsAGEAZwBuAGkAbwBqAEAAagBjAHIAbwBzAG8AZgB0AC4AYwBvAG0AOwB0AG8AbQBpAC4AdgBhAGwAawBlAGkAbgBlAG4AQAB0AGkALgBjAG8AbQA=; Sosha1_v1; 7; {701F382F-74F7-40CF-A099-4BF2FAFE82BB}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Wed, 08 Jan 2014 00:46:19 GMT; WwBQAEEAVABDAEgAIABSAEUAUwBFAE4ARAAgADQALwA0AF0AIAB2AGkAZABlAG8AOgAgAHYAbQBsAGYAYgA6ACAAcgBlAG0AbwB2AGUAIAB1AG4AbgBlAGMAZQBzAHMAYQByAHkAIABwAGMAaQBfAHMAZQB0AF8AZAByAHYAZABhAHQAYQAoACkA x-cr-puzzleid: {701F382F-74F7-40CF-A099-4BF2FAFE82BB} X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsVy+t8zA90H888EGdzus7G4vPASq8WJvg+s FusevmCyWD//FpsDi8erC3dYPPq2rGL0OH5jO5PH501yASxRXDYpqTmZZalF+nYJXBnzl39m LtjAVnH20A+mBsYNrF2MnBwSAiYSMz/8Y4GwxSQu3FvP1sXIxSEksIxR4vep1+wwRQ8XvWSE SExnlPg8bxoThPOLUaJj7UlGkCo2ATWJL18Og3WICOhITFrUwwxSxCzQzCix+doHsB1CArYS S3dPZwaxOQXsJI43P2EDsYUF/CQm3/sCFmcRUJX40HQUaBAHBy9Q/eOt8SBhXgFBiR+T74GN YRbQkli/8zgThC0vsXnNW2aQcgkBdYlHf3UhTjCSuD7xAVSJiMS+F+/AHpAQWMAqMeXTSzaI elOJ6ZPZIOIf2SUO9c5jgThBQOLb5EMsEDWyEpsOMEMCQlLi4IobLBMYpWYhuWgWkotmIblo FpLVCxhZVjGKphYkFxQnpRcZ6RUn5haX5qXrJefnbmKExHHfDsabB6wPMSYDrZ/ILCWanA9M A3kl8YbGZkYWpiamxkbmlmakCSuJ8y56mBQkJJCeWJKanZpakFoUX1Sak1p8iJGJg1OqgVFp msJB9oQkheL6vdErO7vWzT7mI324MOX9h1PqIgUHNASFWet6txje8r+0eNEC31UnP/2M5ZzW afYwN2auhrLle52AZJl4QcU6sZtOV5YxKYt+zHCfuWfaxwMXk9l3zPRPdH0wcfvWqeleu/9e LFe1n67ikSv8qt7kSOocPjXfl5PF9/UyeyuxFGckGmoxFxUnAgDbu02q+QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMKsWRmVeSWpSXmKPExsVy+t9jQd0H888EGRzZY2FxeeElVosTfR9Y LdY9fMFksX7+LTYHFo9XF+6wePRtWcXocfzGdiaPz5vkAliiGhhtMlITU1KLFFLzkvNTMvPS bZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4B2KimUJeaUAoUCEouLlfTtME0IDXHT tYBpjND1DQmC6zEyQAMJ6xgz5i//zFywga3i7KEfTA2MG1i7GDk5JARMJB4ueskIYYtJXLi3 nq2LkYtDSGA6o8TnedOYIJxfjBIda0+CVbEJqEl8+XKYHcQWEdCRmLSohxmkiFmgmVFi87UP LCAJIQFbiaW7pzOD2JwCdhLHm5+wgdjCAn4Sk+99AYuzCKhKfGg6CjSIg4MXqP7x1niQMK+A oMSPyffAxjALaEms33mcCcKWl9i85i0zSLmEgLrEo7+6ECcYSVyf+ACqRERi34t3jCDnSAgs YJWY8uklG0S9qcT0yWwTGEVmIdkwC8mGWUg2zEIyagEjyypG0dSC5ILipPRcQ73ixNzi0rx0 veT83E2M4CTxTGoH48oGi0OMAhyMSjy8N9TOBAmxJpYVV+YeYpTgYFYS4T3WDRTiTUmsrEot yo8vKs1JLT7EmAz0/0RmKdHkfGACyyuJNzQ2MTOyNDKzMDIxNydNWEmc90CrdaCQQHpiSWp2 ampBahHMFiYOTqkGxhiLnQdnPrD/yv634rLsLPc3IeE532qnnhBdGX2ntLuu4+rKIzHG65tr D++wDjdradvkeENZ/bHdfJmHFnXdPqdKmA8dSb44eYWA64brnwVvemp0nFn+b9J/kaKf0qW3 BCd+e7ZJrKfbvi8g7Jr0vaXBumePP+Ncl/p7XdkE51eX+d9cqWYLMFViKc5INNRiLipOBAAH TjQbVgMAAA== 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/vermilion/vermilion.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/vermilion/vermilion.c b/drivers/video/vermilion/vermilion.c index 09a1366..048a666 100644 --- a/drivers/video/vermilion/vermilion.c +++ b/drivers/video/vermilion/vermilion.c @@ -383,7 +383,6 @@ static void vmlfb_disable_mmio(struct vml_par *par) static void vmlfb_release_devices(struct vml_par *par) { if (atomic_dec_and_test(&par->refcount)) { - pci_set_drvdata(par->vdc, NULL); pci_disable_device(par->gpu); pci_disable_device(par->vdc); }