From patchwork Fri Sep 20 08:36:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915671 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 25DD1BFF05 for ; Fri, 20 Sep 2013 08:36:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A13F20173 for ; Fri, 20 Sep 2013 08:36:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04E4A200C1 for ; Fri, 20 Sep 2013 08:36:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754327Ab3ITIgQ (ORCPT ); Fri, 20 Sep 2013 04:36:16 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:58470 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754317Ab3ITIgP (ORCPT ); Fri, 20 Sep 2013 04:36:15 -0400 Received: by mail-pd0-f173.google.com with SMTP id p10so125641pdj.18 for ; Fri, 20 Sep 2013 01:36:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hfGYHcXJX/6bMu9O41S6bWMeahElfjjCUxaiR2iE/Qs=; b=bQ6fyMIqDpnZFvU7Z20RmPb9ujb4VCRiOrhntt4xC2uSBzfpxS8GrHWyIoUhbc4aEB kjWyNSoqw01KD/3ldxBQJXidbIqQnHqIsbnn0UbQyd3wnxy0smBEYgNyNyTG3BkMAKjz +ifrR0qTV+qc6FbtaRbj6lFXI5/Cs/TOdSBrNs8HwKVlMOoT6jvyGoMTkF8kDnpcbvXA o0GD8EjIFNV8kmLbAEOSe3/qJg8DZ7Z+XDN03Uuv0AGsvru5q3oUDPX4ie+ZZ8UTQhEe yDlcWOEoUBcX6NT62T4/mFnFnq0n1Khl9UqIO2r7LWcnlpD5WoTFnRcARmXdvNMK3Jrw aDVw== X-Gm-Message-State: ALoCoQlV/A/YCMxSwbz+q7oMao+B0gmQRx2ZbRbLjUYNBwi4Ba/6yo2ydGV95TiwkidSQKaP/MYX X-Received: by 10.66.180.200 with SMTP id dq8mr7623177pac.104.1379666175172; Fri, 20 Sep 2013 01:36:15 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id mr3sm14271180pbb.27.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 01:36:14 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org, "Igor M. Liplianin" Subject: [PATCH 3/9] [media] pci: dm1105: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:15 +0530 Message-Id: <1379666181-19546-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379666181-19546-1-git-send-email-sachin.kamat@linaro.org> References: <1379666181-19546-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Cc: Igor M. Liplianin --- drivers/media/pci/dm1105/dm1105.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/dm1105/dm1105.c b/drivers/media/pci/dm1105/dm1105.c index ab797fe..e985e3b 100644 --- a/drivers/media/pci/dm1105/dm1105.c +++ b/drivers/media/pci/dm1105/dm1105.c @@ -1178,7 +1178,6 @@ err_pci_release_regions: err_pci_disable_device: pci_disable_device(pdev); err_kfree: - pci_set_drvdata(pdev, NULL); kfree(dev); return ret; } @@ -1211,7 +1210,6 @@ static void dm1105_remove(struct pci_dev *pdev) pci_iounmap(pdev, dev->io_mem); pci_release_regions(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); dm1105_devcount--; kfree(dev); }