Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5808183pxb; Tue, 16 Feb 2021 08:06:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJybsE1jI1YqhFX91m9/vzIOCeWZStZVJ/oCRLM1eN62UfzHMiatwr+GodapRAeDbEZzyVTX X-Received: by 2002:a05:6402:1c85:: with SMTP id cy5mr22075680edb.379.1613491576085; Tue, 16 Feb 2021 08:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613491576; cv=none; d=google.com; s=arc-20160816; b=b5jTRvY+WDQrmKjM7av2lLFkkdSpQ23QSPbhANNM0EfBSJ/ML9yCrb5Q1QjqR9VI/n hsPyQXS1CkiLfaFBrabrUm0OglCXgXTjEHVyT3jyMe6BbcnpstKrEOxdIXfvb32xJgVN gSRuR6Q+o7o/wQK5eFuH9AOQUohgMPkcCZXR2DVBthPXqRbHFhCHtlbnPFEL/NK/9CR3 ssVS7nf2SfkrjNpACroGgMsn5cjnevb1L+pXMFxSFaeEwBwquu/PHWsozyGkHJZlzRXK FjMtXU/Qi2ScJ/yKLcMEQ8+MRQPtYshcQfWjsyv4XtG9SUETi8ZxZb444jHAYxpcS/6D dYpg== 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=hHuRwf2TdnMlb69qCWHCGaaZJgBzN1vXiSlYH3WgE1I=; b=070BAMF8vAQL5qpQSb6J4rRwkMSFmG5LO4YCpaVd+93HHiYZvThHywINtVWqNtyNyl PVgNQClHRJWqVYA6K2JYocHLMMndVkGi2IKb/tp2/rcS3DqQVyLSW9ZYFYt9xKZqrIKl TbLCqcE/qYdXjtDvyYVW1fq+RoIxeeynHVCeG+0tZsNEQM1alayBdHzolsqUiHnX4MtB EktnVzdZPhDtbokyLzky4xILe0bZSmK8PjQyLfSArmSb2SbpCJ77IWaBRQvwt6ZzNLXm QZWO3Kxb2t0E/7dhmCRmV7FwQcvYcBbn1V4W8Xd8PGRh425PutNJCB8NMJXGIZyrtuYG WHmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RTX2JZ0L; 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 a17si563183ejg.44.2021.02.16.08.05.45; Tue, 16 Feb 2021 08:06:16 -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=RTX2JZ0L; 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 S230383AbhBPQEe (ORCPT + 99 others); Tue, 16 Feb 2021 11:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbhBPQDv (ORCPT ); Tue, 16 Feb 2021 11:03:51 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D898FC061786; Tue, 16 Feb 2021 08:03:10 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id kr16so1285984pjb.2; Tue, 16 Feb 2021 08:03:10 -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=hHuRwf2TdnMlb69qCWHCGaaZJgBzN1vXiSlYH3WgE1I=; b=RTX2JZ0LfFB+vJQkvu8Ry+s8sAaHG2DRIKvxP+DcYQy+ATKBoJxQ2cqoQ6Vhsv0ZPH Ku/FsOrpdSdhdgbI1/uJp3iBhhLPWHcN1Hl6lHlvexvjWSCw6cFlZf+sAwNSOVX0lZ+/ 1JITHXBf1uZlxLnKX7VweTPjDasm8kNeNlXJwAzpv97izrMxzZjDk9VnpvPBx0SpMCuL mVxCfJy3o3068IlsqR9ts/ify76qxephAt/CX2fmjfafPvL8dWhqO8Lgd92NQojpHeLf iRrzms+LFeqeAiVG6SH2iLLls2vgNY8gLfFHYCd81xz0waQk/0nnCFrYEORogFXVMBGA 9BTg== 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=hHuRwf2TdnMlb69qCWHCGaaZJgBzN1vXiSlYH3WgE1I=; b=j2Cf7Gaf18pYibGP3/cvMZN0qOs56fE9sm0OVQ9feuS5AXwVeoRq+LxMdhHSjRKhNm d3+aBdgRUiocVbJ+lLTpUh9+qPeIn660bJU88v/ZJPi8NGDlGoAK9YpH/N/rIcpxisPu yFc31eUttPbxj2v6KXJb3De811MVMDx8zwwauZUh8HneGPqF4E0Go2+8kBLy415hjtw0 6Da9kUqMsHXJJD5Zx/ZkA+aj7UTgDunPAjld58KvUmQ+0hKAKr+kA16S8GrHKXu37BpA GjwQyST7y5AJdYVPXuXif1i5596m2FkUMDFKDREY64PsEJ35cPvL3E+UeavVmBKmQcRL aZ8g== X-Gm-Message-State: AOAM530WByOBEkPM9gVIHdcOXzEIYK7wpTjFdXz+ka1yIuromnxNQ0zA ccHtjJy55mTr6eKZ7CiImeI= X-Received: by 2002:a17:90a:7e0a:: with SMTP id i10mr4754761pjl.152.1613491390486; Tue, 16 Feb 2021 08:03:10 -0800 (PST) Received: from localhost (185.212.56.4.16clouds.com. [185.212.56.4]) by smtp.gmail.com with ESMTPSA id t21sm23457321pfc.92.2021.02.16.08.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 08:03:10 -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 v3 4/4] i2c: thunderx: Use the correct name of device-managed function Date: Wed, 17 Feb 2021 00:02:49 +0800 Message-Id: <20210216160249.749799-5-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20210216160249.749799-1-zhengdejin5@gmail.com> References: <20210216160249.749799-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 --- v2 -> v3: - No change. v1 -> v2: - Modify some commit messages. drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index 12c90aa0900e..63354e9fb726 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -192,7 +192,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev, i2c->hlc_int_enable = thunder_i2c_hlc_int_enable; i2c->hlc_int_disable = thunder_i2c_hlc_int_disable; - ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSIX); + ret = pcim_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSIX); if (ret < 0) goto error; -- 2.25.0