From patchwork Fri Sep 20 08:36:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915721 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9D8A49F1BF for ; Fri, 20 Sep 2013 08:36:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C028201D3 for ; Fri, 20 Sep 2013 08:36:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CCE8F200C1 for ; Fri, 20 Sep 2013 08:36:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754350Ab3ITIg3 (ORCPT ); Fri, 20 Sep 2013 04:36:29 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:42422 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754334Ab3ITIg2 (ORCPT ); Fri, 20 Sep 2013 04:36:28 -0400 Received: by mail-pa0-f52.google.com with SMTP id kq13so447526pab.39 for ; Fri, 20 Sep 2013 01:36:27 -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=nJYesoJs9PABFmtggnc7QESeiu/6m9npsZS1yI+DUOk=; b=hOOAZPZ1q5iwPPY/eHVbtrQkY0omm29ncCeNKXVH8aoelA9GzZhpFPG/tFHD7O3lvl 20HWGg73FzBML4+ra274v8DQc+Y0LzTtD0+Svw8WVFVlrcI0flS3dd2EUghXKabYQDO9 8uWDfWZSMnln/bT1kdvNV0GVuaed3NMEJHj2LWjh5FgpDSEDvml/weJLHNZlWJVoHgEL PLjNVA9msHuHY7zVp6zSuWJzfk+vsxcD7Y8w/Mb3lsNPyNbAhb3Y/o8XDX0/yjzv3OZY a/RtXS2tQKlPif430llEQxQWVw1DqM/ty3xO5EtZL0WhvpBPEIc9mv33DF23tIkT6rWi /XAg== X-Gm-Message-State: ALoCoQlO+huroQ1008g0WMETSY1LiCvOBuPiiglLIMQ5/fX4cdmgfNhgiSmPjIRfXtt2yeQQIB/d X-Received: by 10.68.134.133 with SMTP id pk5mr6591203pbb.89.1379666187682; Fri, 20 Sep 2013 01:36:27 -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:27 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org Subject: [PATCH 9/9] [media] pci: ngene: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:21 +0530 Message-Id: <1379666181-19546-9-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/ngene/ngene-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c index 37ebc42..8402ed6 100644 --- a/drivers/media/pci/ngene/ngene-core.c +++ b/drivers/media/pci/ngene/ngene-core.c @@ -1648,7 +1648,6 @@ void ngene_remove(struct pci_dev *pdev) cxd_detach(dev); ngene_stop(dev); ngene_release_buffers(dev); - pci_set_drvdata(pdev, NULL); pci_disable_device(pdev); } @@ -1702,6 +1701,5 @@ fail1: ngene_release_buffers(dev); fail0: pci_disable_device(pci_dev); - pci_set_drvdata(pci_dev, NULL); return stat; }