From patchwork Fri Sep 20 08:36:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915651 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 BF7DFBFF05 for ; Fri, 20 Sep 2013 08:36:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE4C0201DD for ; Fri, 20 Sep 2013 08:36:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC39E201D3 for ; Fri, 20 Sep 2013 08:36:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754322Ab3ITIgO (ORCPT ); Fri, 20 Sep 2013 04:36:14 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:44553 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754317Ab3ITIgN (ORCPT ); Fri, 20 Sep 2013 04:36:13 -0400 Received: by mail-pd0-f170.google.com with SMTP id x10so129215pdj.1 for ; Fri, 20 Sep 2013 01:36:13 -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=Lksj352f/EVpb3XCKDDGqs0s4DzrA/Xat2NAhO3GJ/s=; b=Rq4ffY/fZN6Mi56bWq2abE05E5f5dabJDE3T2qTLbxhZ92OBhQCD99MnwPdXTE8hK4 e6hLvuB5g5+A61WNC2R7iBTy7ZLoA8yAVLWK54R9xQMtCX33Ih/OBRlO+Xbf/Nh22dgt HWJPQu+bHRoBJReikmfVNBv1d5KGaLv0b0KsE2MEFXo9hnjyFgtCIBBP1zFsvwKjNAFK e3HHLfbHAUyDGUVJbTax4qgc/oChPzK6P8b3Hwif/zo1Bj3u42MTwHMfA7SddOFbDsYj wdaSVkcCBSdNLMZ7LyTjzpUnX71xTNt1QfkN2VW7lC/3wyN8aOTkDh5TuiUHxVPtofd4 8JgA== X-Gm-Message-State: ALoCoQk7SUq+V4VoAokz9+GKeFRIbsbA7KCgDOpQhgpYXA+lesaAjixMce/jM6JGlE7z+NsUyI61 X-Received: by 10.69.12.36 with SMTP id en4mr6686479pbd.54.1379666172950; Fri, 20 Sep 2013 01:36:12 -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:12 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 2/9] [media] pci: cx88: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:14 +0530 Message-Id: <1379666181-19546-2-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 --- drivers/media/pci/cx88/cx88-alsa.c | 2 -- drivers/media/pci/cx88/cx88-mpeg.c | 1 - drivers/media/pci/cx88/cx88-video.c | 1 - 3 files changed, 4 deletions(-) diff --git a/drivers/media/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c index 4a3f96e..11d0692 100644 --- a/drivers/media/pci/cx88/cx88-alsa.c +++ b/drivers/media/pci/cx88/cx88-alsa.c @@ -935,8 +935,6 @@ static void cx88_audio_finidev(struct pci_dev *pci) snd_card_free((void *)card); - pci_set_drvdata(pci, NULL); - devno--; } diff --git a/drivers/media/pci/cx88/cx88-mpeg.c b/drivers/media/pci/cx88/cx88-mpeg.c index e31a75f..684eff5 100644 --- a/drivers/media/pci/cx88/cx88-mpeg.c +++ b/drivers/media/pci/cx88/cx88-mpeg.c @@ -520,7 +520,6 @@ static void cx8802_fini_common(struct cx8802_dev *dev) /* unregister stuff */ free_irq(dev->pci->irq, dev); - pci_set_drvdata(dev->pci, NULL); /* free memory */ btcx_riscmem_free(dev->pci,&dev->mpegq.stopper); diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c index 356725c..1aed764 100644 --- a/drivers/media/pci/cx88/cx88-video.c +++ b/drivers/media/pci/cx88/cx88-video.c @@ -1922,7 +1922,6 @@ static void cx8800_finidev(struct pci_dev *pci_dev) free_irq(pci_dev->irq, dev); cx8800_unregister_video(dev); - pci_set_drvdata(pci_dev, NULL); /* free memory */ btcx_riscmem_free(dev->pci,&dev->vidq.stopper);