From patchwork Fri Sep 20 08:36:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915641 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 BFCBABFF05 for ; Fri, 20 Sep 2013 08:36:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A9B3620173 for ; Fri, 20 Sep 2013 08:36:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74EE0200C1 for ; Fri, 20 Sep 2013 08:36:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754253Ab3ITIgM (ORCPT ); Fri, 20 Sep 2013 04:36:12 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:59639 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754174Ab3ITIgL (ORCPT ); Fri, 20 Sep 2013 04:36:11 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl13so451181pab.6 for ; Fri, 20 Sep 2013 01:36:10 -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; bh=nbbVZi6GjiiqSP5u00akdV21mVrrlYbTOJOPnRD8oPQ=; b=WiHF08ulHsjE0tfaoTLODwGbaSWiIQHeIhAqqcZQcDJVCEco+JmiudsOITwcxanmqu pxT+G7iKnkDxpB9UN0Ja8dVpA/tMcFNAUUktYXHr/UndQhgx1b9ATyYXVwO0BvIOwGe2 EBiswDtmUxQ3UbZWUgchOtVFwQ/PjmjVzpRAi1+iYG83A0xEO1uM1PDaFsicyluXf7BX IRbzpKsKw7AeR9BdvGzLBkKPzmAYP99yOU/e+fAKbkZPMEcnSOz2GlGOz1Ma0hs2Iw6r vgBceInoyUtPo2Po72+qHtTdRuwgsZPhboTcXmxQSBoN8maqYWfChY/5KavHwjnN0hNu CZwg== X-Gm-Message-State: ALoCoQlnIrq3RGDfQubmtG+MwfpixmEFKwRnrIBSHLiYN1kYErF+boB1H8eJS07WGCcVQQpj9zQe X-Received: by 10.68.243.99 with SMTP id wx3mr1905734pbc.179.1379666170680; Fri, 20 Sep 2013 01:36:10 -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:10 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org, Patrick Boettcher Subject: [PATCH 1/9] [media] pci: flexcop: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:13 +0530 Message-Id: <1379666181-19546-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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: Patrick Boettcher Acked-by: Hans Verkuil --- drivers/media/pci/b2c2/flexcop-pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/b2c2/flexcop-pci.c b/drivers/media/pci/b2c2/flexcop-pci.c index 447afbd..8b5e0b3 100644 --- a/drivers/media/pci/b2c2/flexcop-pci.c +++ b/drivers/media/pci/b2c2/flexcop-pci.c @@ -319,7 +319,6 @@ static int flexcop_pci_init(struct flexcop_pci *fc_pci) err_pci_iounmap: pci_iounmap(fc_pci->pdev, fc_pci->io_mem); - pci_set_drvdata(fc_pci->pdev, NULL); err_pci_release_regions: pci_release_regions(fc_pci->pdev); err_pci_disable_device: @@ -332,7 +331,6 @@ static void flexcop_pci_exit(struct flexcop_pci *fc_pci) if (fc_pci->init_state & FC_PCI_INIT) { free_irq(fc_pci->pdev->irq, fc_pci); pci_iounmap(fc_pci->pdev, fc_pci->io_mem); - pci_set_drvdata(fc_pci->pdev, NULL); pci_release_regions(fc_pci->pdev); pci_disable_device(fc_pci->pdev); }