Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5732526pxb; Tue, 16 Feb 2021 06:22:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwa6/m39iE23yRKJkzQ/0sqOVHjLixT8f9cwvfEPBG6aCU0d06iqC106qIh7TWIKbOjDtHi X-Received: by 2002:a17:906:7ca:: with SMTP id m10mr20131646ejc.257.1613485355337; Tue, 16 Feb 2021 06:22:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613485355; cv=none; d=google.com; s=arc-20160816; b=BLmzoObcuMVagAOEmWEDNhSHjiGqOlg2+vRistsQ8yHye46dxfpBs3zSt3eX921fSj G9GUMr7WQlU8BOrpwz8jTszw8NKV+AgNd08KAQyo5IELO6f6MJGk6ORY7/clxAf2tsNU G94WXQ1zwJeqP0MooVnAzAo8XZLjnvDyRdZbWY16YGwF3dNCOJ4XPvCl1LmLJkuJIfhC mVtdHW+QhQVmdIvXVSMC0u+1YB9bmbjlWKocRMqUyY+2pWnmC40bKBJD7xM6olXi6FiZ bGXdmY789WcldlWtAs8DgfwKBVLbSRCvF+77jDmoVvVHLMsLCuPFF5MHPJ33+TeI3e1D JCVw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IHEaF+WKHnNn5hB+4HbszzyQ9PkeVdXzN3dgFBMQEXo=; b=ohuiVlKMihZscWbf5kpYtgRDWG2cfDUnIz05WY1cF3B+mPhxt3KYvn1eRvbiMRzTMY KF/6/AwhdubNK+SQYK57JgIf+9Hdw+dHMTnyxo98FRfim+eeHwmll9tHJVkMY0OYG9XW TNRtwMcvAc5cA0skUYLBM8oNp5xFXomIT7vrYRX6mAI3NLAEHcjGXQ6uDhfCFC4gUVg1 37ARxpKhAuwxzYuJEkhl6+PDuZrG+iFijO2CDsN8z5T0lpRFoUwirjHRT7ZAQhh1GnVI 6cnJrEuFkB8evQj2L1KNodnK6pcf31IVVyYipFKR/it6cYjjWs9funW4B3qMphizolF4 vvjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ef11sgnV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt1si13353584ejc.377.2021.02.16.06.22.12; Tue, 16 Feb 2021 06:22:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ef11sgnV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbhBPOTm (ORCPT + 99 others); Tue, 16 Feb 2021 09:19:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhBPOTP (ORCPT ); Tue, 16 Feb 2021 09:19:15 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 417F4C0613D6; Tue, 16 Feb 2021 06:18:35 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id f8so3965710plg.5; Tue, 16 Feb 2021 06:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IHEaF+WKHnNn5hB+4HbszzyQ9PkeVdXzN3dgFBMQEXo=; b=ef11sgnV/UXxKFcVgxGvL7LE+NNwCeOupgSes75/fQnxnyRpNSNVoVTZcTRKzO7VNS 21+ceS3lkMHQjQUEvI8Tpongs/ZGl+IyCKXgUJkm8XvX+TF3nRsoYWzcFT61AUFTqfXv wwJOHh9wCUBmLCE1OudnQ+N4uVJfkFcv9q+KRxBkn9j9odn6Dv7Gep12w6VMqg4Hkpu9 qqC92aH12QTGiiW7/Q+1VoWW8CB0w+8k9UiHaFFobTk+H5molyMJTXNLB/ZzBwLNx4lT xHF3iSS7FyVt+Chq4GWgsXsc0p0yFJts5HECHbYlZZbZhPVEHapEnnYl79K8HUvX0Lf2 YclA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IHEaF+WKHnNn5hB+4HbszzyQ9PkeVdXzN3dgFBMQEXo=; b=uBWez7qhPWWQDd3QuVrm2e944SM7xoVqv7dGiBfGQWdClWKD+mSMRk5MsUKQfcfgvK r0wAEP60oMfs2yo2Kv8+sgiQzBCRlV6NYkakorfGwoJq0gTlVhgnOUWzMil6GVw6J1me gNj9b0cKoLuWhuwUCW94dQymxjpiMT7/LePLBVR35pqTQ/1qfnw0C4tKngnYLwXfOUgH jiDWeftYTEvFtygoJGkRgu3hI+k3BYfyONrJvaAALXb/PpoREpIPidUqYJV0Y8x6wTbu 5hZ+pxO/ajKBNKXn2r6MpdhyyLfJmax0IzU21unxxpIf1z9M9TV0U/Bv8jdbd0GiGdb1 IbrA== X-Gm-Message-State: AOAM53346V09c3prgPJrrbibSt6vZYyro2t6vog1AlxNoOxHyKKExWG/ Ip2JdVq5llA9c4eiixItqVk= X-Received: by 2002:a17:90a:2c9:: with SMTP id d9mr4479856pjd.67.1613485114854; Tue, 16 Feb 2021 06:18:34 -0800 (PST) Received: from localhost (185.212.56.4.16clouds.com. [185.212.56.4]) by smtp.gmail.com with ESMTPSA id y8sm23911377pfe.36.2021.02.16.06.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 06:18:34 -0800 (PST) From: Dejin Zheng To: corbet@lwn.net, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, rric@kernel.org, bhelgaas@google.com, wsa@kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, kw@linux.com Cc: linux-kernel@vger.kernel.org, Dejin Zheng Subject: [PATCH v2 3/4] i2c: designware: Use the correct name of device-managed function Date: Tue, 16 Feb 2021 22:18:09 +0800 Message-Id: <20210216141810.747678-4-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20210216141810.747678-1-zhengdejin5@gmail.com> References: <20210216141810.747678-1-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new function pcim_alloc_irq_vectors() to allocate IRQ vectors, the pcim_alloc_irq_vectors() function, an explicit device-managed version of pci_alloc_irq_vectors(). If pcim_enable_device() has been called before, then pci_alloc_irq_vectors() is actually a device-managed function. It is used here as a device-managed function, So replace it with pcim_alloc_irq_vectors(). Signed-off-by: Dejin Zheng --- v1 -> v2: - Modify some commit messages. drivers/i2c/busses/i2c-designware-pcidrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c index 55c83a7a24f3..444533be49ee 100644 --- a/drivers/i2c/busses/i2c-designware-pcidrv.c +++ b/drivers/i2c/busses/i2c-designware-pcidrv.c @@ -219,7 +219,7 @@ static int i2c_dw_pci_probe(struct pci_dev *pdev, if (!dev) return -ENOMEM; - r = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); + r = pcim_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); if (r < 0) return r; -- 2.25.0