Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11043928rwl; Mon, 2 Jan 2023 12:47:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXuCqV4Ox8zfhn9IHCm2uzO4DicNKs6mRAnmy2wRdEK8pdCIRDwqGS0DdwdCJ31p1mIznVRA X-Received: by 2002:a17:90b:601:b0:20d:bd5f:ced2 with SMTP id gb1-20020a17090b060100b0020dbd5fced2mr46354103pjb.34.1672692429746; Mon, 02 Jan 2023 12:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672692429; cv=none; d=google.com; s=arc-20160816; b=UcCWBHmVc5vcX3hvb+a9G21r3G0oidAVK8TPLocHJYtgvpgvflnn6yZjDAE8sCkNtz 7GkD7dVFqLekgXnaF1kWLIZB+DbtAjVq+Iq2jVdKuUIl8OFzLwVxirXPwPep9ptDpiBf 7WQDks1rQjFrA5S10BjalYqNE41dAGiblaaPczcbLwrMFsha4wUIrDwLKh2/89RID84X UWBPSSHa+jgPE/JIyLNg/uZ6D/S7Yv+DzGszXS+6GPBnifmmuZYCfC5coA0bkXccd5cL 1MPHltBmD6mgYKEy4enrH1afzBSIqTXW1zbmnlWQdaFf0I4RXpyI/37s7oYnQcBI9LD0 5HQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NAP/goNIpNi3ho2edIpQghjDLtiw3hcIAZhY1Bj7U48=; b=EdMg+hiwZ1IBxRwMEiY/KjTkKwAegtHpDpF6/tjIHs2qHRZb97EFMv4hPe4l9cVzjl LEWCUUHTpjRxnQCqJ+7f8w7QXL/bEfebkA/eDrvKyuyaSGHWaRGZrN6wDYL5rK+M7VLZ IZSbuFJ2YWvlEZijbKim7JTHxJ9WkPofRlUV37SB8HZCEuQTZEvY3lYUwmmrpXGPAlGm 40PBVTWT8kv+FX7hokryaa7pJVaFOnNpkMJe/5MYhblz3moUFkjbCjHuBv1macYde5mk ZzgnTprQH3DbA2y4f7tamaop4kQXm3zsRJXyJFdZ0gbXsDxDvILWW4emwRGRbxw/8CnH eY+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D5C2n0hv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pg15-20020a17090b1e0f00b002266735a4b8si6043384pjb.81.2023.01.02.12.47.01; Mon, 02 Jan 2023 12:47:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D5C2n0hv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233250AbjABU3T (ORCPT + 61 others); Mon, 2 Jan 2023 15:29:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbjABU2w (ORCPT ); Mon, 2 Jan 2023 15:28:52 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D857B7C5 for ; Mon, 2 Jan 2023 12:28:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672691331; x=1704227331; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Lv2Elwe3ulVHFvJLU667O/l2EXajCGq8zg7gGeG3KKI=; b=D5C2n0hvUEoDpKJZMeqPVNZ1A6TJB/ygsHUZDAViwAzAsDrCbuf6YIDD Rf6akwjxrAosiKalIuq3Ti2BxuS5B1Sh5vHMWM4TL9J+hQM/+K9sA5CeF u2jQ689vLq5UNO24srQ9WzMZ9coU/i9D+34QWYLgJrGw/8+Bg8CJp4m8p PpXcopOPtvpDEMBj5lu6s5GvyFKdrwsnEFffDhTIzsmVze1uB3wYIQAXD a8R0JC9VXNGKNU+GTtz2XMb5mtM4KGevAbelIMXBd09jybRx2X0/RTMQk ifqhi+RSet9f+ONTtRdTLCdGXSCcRnanqgDr6FNzxDSoDHROKdgeqmT9m A==; X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="322772120" X-IronPort-AV: E=Sophos;i="5.96,295,1665471600"; d="scan'208";a="322772120" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2023 12:28:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10578"; a="654577473" X-IronPort-AV: E=Sophos;i="5.96,295,1665471600"; d="scan'208";a="654577473" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 02 Jan 2023 12:28:49 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 30DB6F4; Mon, 2 Jan 2023 22:29:20 +0200 (EET) From: Andy Shevchenko To: linux-kernel@vger.kernel.org Cc: MyungJoo Ham , Chanwoo Choi , Hans de Goede , Chen-Yu Tsai , Andy Shevchenko Subject: [PATCH v1 1/1] extcon: axp288: Replace open coded acpi_dev_put() Date: Mon, 2 Jan 2023 22:29:19 +0200 Message-Id: <20230102202919.15925-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of calling put_device(&adev->dev) where adev is a pointer to an ACPI device, use specific call, i.e. acpi_dev_put(). Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon-axp288.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index 180be768c215..a703a8315634 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c @@ -393,7 +393,7 @@ static int axp288_extcon_probe(struct platform_device *pdev) adev = acpi_dev_get_first_match_dev("INT3496", NULL, -1); if (adev) { info->id_extcon = extcon_get_extcon_dev(acpi_dev_name(adev)); - put_device(&adev->dev); + acpi_dev_put(adev); if (IS_ERR(info->id_extcon)) return PTR_ERR(info->id_extcon); -- 2.35.1