From patchwork Fri Sep 20 08:36:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915691 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 E5AAA9F1BF for ; Fri, 20 Sep 2013 08:36:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0E4D20173 for ; Fri, 20 Sep 2013 08:36:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77BE9200C1 for ; Fri, 20 Sep 2013 08:36:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754337Ab3ITIgX (ORCPT ); Fri, 20 Sep 2013 04:36:23 -0400 Received: from mail-pb0-f47.google.com ([209.85.160.47]:46860 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754239Ab3ITIgW (ORCPT ); Fri, 20 Sep 2013 04:36:22 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so123371pbb.20 for ; Fri, 20 Sep 2013 01:36:21 -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=0yH+CwYZcM/rH5F4XggIQXNy6Wnjvofu4EVhmaPKbxE=; b=f/fBEdhQVB6hKv5K+TCWg7fl5iA+lfDX6z5RuHDl6WOiLOB65hvSXChJ8x3pS301ZM uB7C8MCn0a2auKbMY5cD850tkH3AWqewDIEVLG9vnSxi0hGg0d4FUnnCYUykgq8S1PKX iXpkK1IONoNp9jvX3G7oADfCwvRyR0g0R0O9tR9jn+00csE4MFXYcKGvXkam8UbVbWnT lKJmPuwA++yS7AaZZh8v7NWXQcYnOo76Q4jFlyUSpec2tG/N/CLNwu9iUjGojfhA/UB4 4e+oOiEdso1wdfulfqDJkRVilWcpanvCiJIxpKkgPS81tJzr1nNzweSLhHsuplTW6qQN pXDg== X-Gm-Message-State: ALoCoQm32sfufR/Xxg6pfXa9YLZ577gM9m1p+aW4LIWqltha+SC5v49uYdBVPG3F5AtoW3MqnGsa X-Received: by 10.68.90.129 with SMTP id bw1mr6525043pbb.111.1379666181703; Fri, 20 Sep 2013 01:36:21 -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:21 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org, Takahito HIRANO Subject: [PATCH 6/9] [media] pci: pt1: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:18 +0530 Message-Id: <1379666181-19546-6-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: Takahito HIRANO --- drivers/media/pci/pt1/pt1.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 75ce142..db887b0 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -1076,7 +1076,6 @@ static void pt1_remove(struct pci_dev *pdev) pt1_update_power(pt1); pt1_cleanup_adapters(pt1); i2c_del_adapter(&pt1->i2c_adap); - pci_set_drvdata(pdev, NULL); kfree(pt1); pci_iounmap(pdev, regs); pci_release_regions(pdev); @@ -1198,7 +1197,6 @@ err_i2c_del_adapter: err_pt1_cleanup_adapters: pt1_cleanup_adapters(pt1); err_kfree: - pci_set_drvdata(pdev, NULL); kfree(pt1); err_pci_iounmap: pci_iounmap(pdev, regs);