Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1456812yba; Wed, 24 Apr 2019 23:25:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPsEOP9cvPYBQJhG2870C9On6Al8BdHZC6g6o/4Qg40epkou7l56U9uO1eULdAS35SwDRk X-Received: by 2002:a65:6212:: with SMTP id d18mr35346376pgv.162.1556173500764; Wed, 24 Apr 2019 23:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556173500; cv=none; d=google.com; s=arc-20160816; b=1HWi2V8fKvr17Y8xXlFXjo6Ss8bujwCAmxQS8PIhRZcfs1X57F6MkrraBHmhjl60N+ yuk+oo5FAvdLZGwS80aQnsjMvE13H3jdBJcq48fm8IBkfrmhJEyvnD7oy2mhnmIB1mNU GreOokCGe9vS4SBumDcuW36KlQLd70EPET3MN7shz09FJqf4WafNkORcsFynklic6ls4 Cw3DPDLUba3wAsA/GqCUekR1jVbdn0EFaWUEs+qTiPnqvBSiPN8FrEcAU+3lyfL8dcHt w4Tor7qahtfL4rxOrpoC4kcrlxX0W7KGQdnV5DjkZJT6RmwLCrAeTqY6KBsxceZJ4CRS 0QmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=SAbbSQG37YeApBp0oyHaMCbtBHNMxP+2zNJpk+CsD/M=; b=cKqG4XEVeAzEuxlHV1fJjPUwLBAOzeoUSuPrPKxCopUrOD7GJ85gw1b+UZKsTlg6Yu /vymR/ojoZfX0SQZd1xXtRdfpBcVmX1Rme3hLN0ukrHiKvidqzOC9+2FIj+KAJ8KhYKF KNmDNek0eFOUFum84WXSOtpZz17IJVeyaUyo5AbFmMpdrD+gi058LZwf08hQFWDKqpf9 YXQcOng5XsN5yt1N5RPjDt1t2ZJYQ0F9Qdz31gmcjJ4haA6RfrRcBalANjgGbdzPIBRo YBLGCj+ng3sQ2dAb0GWr1rFroUr1d/JWwsrIsuy3p5Wy2pvVqkJQHcbvq1jmHjUaODo8 UDjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AIXRJwuB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si21752754plq.133.2019.04.24.23.24.45; Wed, 24 Apr 2019 23:25:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AIXRJwuB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389647AbfDXTSJ (ORCPT + 99 others); Wed, 24 Apr 2019 15:18:09 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36051 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388804AbfDXTR7 (ORCPT ); Wed, 24 Apr 2019 15:17:59 -0400 Received: by mail-wm1-f65.google.com with SMTP id h18so6654785wml.1; Wed, 24 Apr 2019 12:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=SAbbSQG37YeApBp0oyHaMCbtBHNMxP+2zNJpk+CsD/M=; b=AIXRJwuB+H8CUQQMeS5qlpm0mA9MRtCpnvd55esAPnP4ZWf8RvpdvE922lJmqnVIpB 3WTSTa1p1xLB/UPdSXHtSdMm3TwK0Ijnw5bZfpyK0oWvEVW3C09vKa1Q2aYpH2hWevRC LzFsybDvUKqNfYk+TG/LaBrmNyzjfxLPOoWGgrjG+moMF94/PiKjNMdt7AGAj8dA59K4 1/Eg3DgVYvKL5GLVCx68IVgAiK56Pb2bmSAxMnuMtfO32YoCnamKsq6gqu71j44UcOgv 4GZRg98MJRc10wCTTm84P0cCLZbrQhwuPU/OgImeBXnr5lQkDyGgHFjzV90i9GpJdHs7 kLQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SAbbSQG37YeApBp0oyHaMCbtBHNMxP+2zNJpk+CsD/M=; b=DDTZKeDF/eTYhcOoYP/VjKb02JZ9ltmbd3Nyz5Oy9csIuO2NTDKajR8Ua3CwQ1pefd T5mEcH63MjRlShUjwgtDJPHMs3/+z8XGb4FP3SBNrwKtloOsJpIJEF2Z8lGVDMyQh1kO SuaPMfivj3SXLIK9PyDZ0FJdBiUfEzDF/bFpoxCw9xcv/2b+6F4ZeZLwK9MGnCzMeZJL Pdvt4h8M8uA/1pnSCHy48cfNTmw2n244z2jsJSE0bSoVG7PKsYuQXgmNQZj+QnBJ6cB/ Rrp87Zcu8mu3P1JMX49I/DiwDq6yxr3/jR5OsO/bL+kiBUngHNdkHTiP6SAapobsH6Bg 27DQ== X-Gm-Message-State: APjAAAXv+IRqaFMpGzbEN1CyLTe0b1fBNBoCsQ1koP3HwHyGVFXGYpNe hQm8jH5LYttibDYjkLwXoTOkSdg2+vg= X-Received: by 2002:a1c:f50a:: with SMTP id t10mr473319wmh.86.1556133476436; Wed, 24 Apr 2019 12:17:56 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd4:5700:c498:ee8f:ff0a:13e5? (p200300EA8BD45700C498EE8FFF0A13E5.dip0.t-ipconnect.de. [2003:ea:8bd4:5700:c498:ee8f:ff0a:13e5]) by smtp.googlemail.com with ESMTPSA id q202sm4917605wme.9.2019.04.24.12.17.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 12:17:55 -0700 (PDT) Subject: [PATCH v2 8/9] stmmac: pci: use helper pci_dev_id From: Heiner Kallweit To: Benjamin Herrenschmidt , Michael Ellerman , Oded Gabbay , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Joerg Roedel , David Woodhouse , Realtek linux nic maintainers , "David S. Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Bjorn Helgaas , Benson Leung , Enric Balletbo i Serra , Stephen Rothwell , Paul Mackerras Cc: open list , "open list:AMD KFD" , "open list:RADEON and AMDGPU DRM DRIVERS" , "open list:AMD IOMMU (AMD-VI)" , "open list:8169 10/100/1000 GIGABIT ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , "open list:PCI SUBSYSTEM" References: <2e1f9a57-6d08-d017-24da-3e6b97fa2449@gmail.com> Message-ID: <82febf42-5f1e-a5d1-5c38-40dcaefdf700@gmail.com> Date: Wed, 24 Apr 2019 21:16:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <2e1f9a57-6d08-d017-24da-3e6b97fa2449@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use new helper pci_dev_id() to simplify the code. Signed-off-by: Heiner Kallweit --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c index cc1e887e4..0e87a9596 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c @@ -208,7 +208,7 @@ static int quark_default_data(struct pci_dev *pdev, ret = 1; } - plat->bus_id = PCI_DEVID(pdev->bus->number, pdev->devfn); + plat->bus_id = pci_dev_id(pdev); plat->phy_addr = ret; plat->interface = PHY_INTERFACE_MODE_RMII; -- 2.21.0