From patchwork Mon Jun 3 15:49:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 165658 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4648012ili; Mon, 3 Jun 2019 08:55:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU5eBQPYLLMXbtrtnCqaIkf97utiVxACYO/25c0OVb6ggj40qlkmu1gAXFOwzYHecAaQLU X-Received: by 2002:a17:90a:8b91:: with SMTP id z17mr30972651pjn.61.1559577305957; Mon, 03 Jun 2019 08:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559577305; cv=none; d=google.com; s=arc-20160816; b=QU3/KW10N5U5+fzGmoxSxuPr0fza4iMBhiNk9RyvSCYCV4YgTLv1XMSi5mb0EeylV4 QWwnQ0b8RLjDNTT2pkxxO6NxK0HTMzM7uFq/zmdQaAB2HtO0Khd9czIRsX5abUpL6ylo KuMWL95oXtY/PTI3Ebm0OPWA0k5MPDFEYBX4JLVaaU/2hcnKa0uPqYDyPfP9F1Up4DZ3 FP9/ABBu0E0mDsLx289p4R01QxgbCEhqiMi833ldPL+SbHpsPBrpb3GA+I/c5lKWM8SC 04MlQCpoXBMUkq32cIQNFAV8jXqu+J9o7ew4SroUK0hCww/Gc3jYrR4BPBgfc6k29pLp khew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=v/N1pCXi8x+EUneafQSzDm4FxJ/OZcnILHoErrkmaFQ=; b=p8YGdyRiIX01CbDQ0uYDSJXFhEqyBxbs3Tc3mV7S1pxYHHrrael2ffMG7riZEqAXXA hgibD/m44215m4BLw46gElusdq17VPvf0Chk40BT+nD+iDFcrWYvPsvIuJGUh8XSH7M8 CVfan7OHvO/meMn0DDK+U2xeSy+0YzCxXvZTGt/lVLssNfa2Wj4BbbCedGIiz5BgnHlO aoA5+46+kOeOgUIrSGL/n1+BqsxGx8Zi/ukDQT6uyFH5eRye7aJaXYWISutY6YpGGf1I AOQddAoX8vR1ArhTKCVvXjdn0StI8We548rfrwoXvwsmnU/tmR1KwF7Ij7TsxkcFk1Ff dlKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d197si17414434pga.110.2019.06.03.08.55.05; Mon, 03 Jun 2019 08:55:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728311AbfFCPvE (ORCPT + 30 others); Mon, 3 Jun 2019 11:51:04 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53520 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfFCPvB (ORCPT ); Mon, 3 Jun 2019 11:51:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7E3671682; Mon, 3 Jun 2019 08:51:01 -0700 (PDT) Received: from en101.cambridge.arm.com (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4250E3F246; Mon, 3 Jun 2019 08:51:00 -0700 (PDT) From: Suzuki K Poulose To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, rafael@kernel.org, suzuki.poulose@arm.com, Corey Minyard , Arnd Bergmann Subject: [RFC PATCH 02/57] drivers: ipmi: Drop device reference Date: Mon, 3 Jun 2019 16:49:28 +0100 Message-Id: <1559577023-558-3-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> References: <1559577023-558-1-git-send-email-suzuki.poulose@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the reference to a device found via bus_find_device() Cc: Corey Minyard Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Signed-off-by: Suzuki K Poulose --- drivers/char/ipmi/ipmi_si_platform.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/char/ipmi/ipmi_si_platform.c b/drivers/char/ipmi/ipmi_si_platform.c index f2a91c4..ff82353 100644 --- a/drivers/char/ipmi/ipmi_si_platform.c +++ b/drivers/char/ipmi/ipmi_si_platform.c @@ -442,6 +442,7 @@ void ipmi_remove_platform_device_by_name(char *name) pdev_match_name))) { struct platform_device *pdev = to_platform_device(dev); + put_device(dev); platform_device_unregister(pdev); } }