From patchwork Mon Sep 23 01:52:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2925801 Return-Path: X-Original-To: patchwork-linux-media@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 E7432BFF05 for ; Mon, 23 Sep 2013 01:52:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2CE84200F8 for ; Mon, 23 Sep 2013 01:52:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4C2D6200E7 for ; Mon, 23 Sep 2013 01:52:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272Ab3IWBwP (ORCPT ); Sun, 22 Sep 2013 21:52:15 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:36407 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153Ab3IWBwO (ORCPT ); Sun, 22 Sep 2013 21:52:14 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MTK00AFX2FH6390@mailout3.samsung.com> for linux-media@vger.kernel.org; Mon, 23 Sep 2013 10:52:14 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 9C.E9.17682.ECE9F325; Mon, 23 Sep 2013 10:52:14 +0900 (KST) X-AuditID: cbfee68e-b7f756d000004512-78-523f9eceaa5a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 9F.CA.09055.DCE9F325; Mon, 23 Sep 2013 10:52:14 +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 <0MTK00ELE2J1AV80@mmp1.samsung.com>; Mon, 23 Sep 2013 10:52:13 +0900 (KST) From: Jingoo Han To: 'Mauro Carvalho Chehab' Cc: linux-media@vger.kernel.org, 'Jingoo Han' , 'Hans Verkuil' References: <003601ceb7fe$462af680$d280e380$%han@samsung.com> In-reply-to: <003601ceb7fe$462af680$d280e380$%han@samsung.com> Subject: [PATCH 07/10] [media] saa7164: remove unnecessary pci_set_drvdata() Date: Mon, 23 Sep 2013 10:52:13 +0900 Message-id: <003d01ceb7ff$8660d700$93228500$%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: Ac63/kYUWuo+na92TD2gsbPKJKhaiAAASFkg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsVy+t8zQ91z8+yDDM7OZrdY8nMXk8XlhZdY LXo2bGW1uLhO3oHFY8rvjawefVtWMXp83iQXwBzFZZOSmpNZllqkb5fAldH9O6Kgm63ix6Uf zA2ME1i7GDk4JARMJOZ3lnYxcgKZYhIX7q1n62Lk4hASWMYo0bt+HQtEwkTixfKlrCC2kMAi RolTB6CKfjFKNBxexQaSYBNQk/jy5TA7iC0iYCSxY/4cJhCbWSBPYvPHW1DNthLNsz+C1XMK 2En83rsZrEZYwEfi6fouJpCDWARUJU4eDAQJ8wKV/zzZwAphC0r8mHyPBWKklsT6ncehxstL bF7zlhniF3WJR391YS6YdO0xK0SJiMS+F+8YIV7Zxi6x6GsBiM0iICDxbfIhFohWWYlNB5gh SiQlDq64wTKBUWIWksWzkCyehWTxLCQbFjCyrGIUTS1ILihOSi8y0itOzC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1XJf8x2dHsSwRCYy2VzZzsLObq2zMvbCsXbF7ZPrmmZsl1S2mvb344Rr rQe/Lk1dnDcj5kSb2Mq759WiP3vGvud/Z9MwwWzlU5PpJabfHTUnWdwqSPn74M58QU6Fl+X5 j5RYijMSDbWYi4oTAeEpK901AwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-9.2 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/media/pci/saa7164/saa7164-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164/saa7164-core.c index d37ee37..41adf26 100644 --- a/drivers/media/pci/saa7164/saa7164-core.c +++ b/drivers/media/pci/saa7164/saa7164-core.c @@ -1439,7 +1439,6 @@ static void saa7164_finidev(struct pci_dev *pci_dev) /* unregister stuff */ free_irq(pci_dev->irq, dev); - pci_set_drvdata(pci_dev, NULL); mutex_lock(&devlist); list_del(&dev->devlist);