From patchwork Sat Jun 20 17:43:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1313689 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=a3NC/CRn; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49q31z37s3z9sRR for ; Sun, 21 Jun 2020 03:43:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D614C813C4; Sat, 20 Jun 2020 19:43:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="a3NC/CRn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2294781745; Sat, 20 Jun 2020 19:43:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4998480929 for ; Sat, 20 Jun 2020 19:43:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@gmail.com Received: by mail-wr1-x441.google.com with SMTP id x6so12639489wrm.13 for ; Sat, 20 Jun 2020 10:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sB5lTml8vr12Bix/nlXtM4RUka1WNTeVM6/Li1Mge08=; b=a3NC/CRnqaap3fw4JaWkQdZN6/kHFQAdoQyz/QdYsfCdxcBNo+5aciTsDXXQJFMVVL vKD7I0gBJjA3guFHDK3GWXgJRv78abztZbDF/HZlM+7YsdFO/zyzpa44GLYMeHw9fTZh 5OeUj03cGsIZrKW1Z5ph9Djagx8JrKx7ai0mSXPPJcufpLGnXuWvJRTZpgdj+BbxQ/FS CRGb0Jdzozvm8bxyUTE4J4zzfls1uxwWVhd6o0WOsSVhyvUI8UzOIN4xSaRwm6H+y6kd WH/O+czeUKhuAa/nx1oFqFxB9/Ew2ytmthV5jVfw5p96YBn7tZWwW8jyfsAoyooB7bZl dPlQ== 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:mime-version :content-transfer-encoding; bh=sB5lTml8vr12Bix/nlXtM4RUka1WNTeVM6/Li1Mge08=; b=LIlZgy/BxjpdmKkP6DG8W++0j7C7u4vcBl/FMHrN4pQP4y5Dyc6ieKAxa+hmdplY5K iL2tm+ncQsiK/tks3yH7g6K8Gr6qqcc8dff0gjjqEnEz30ssCeedtL1W75ulY3JDIiGz INOtvT08hAEg7RNsgVg2w9lT0hg0t+MnHlrNl9jVnWrEhy/fJx/N3GfCA+BpoizXrdtK p6S/KVG/XWQWOuVCRKdDzrn1cADnm5w/0Xk6waBWFi9FEa1q1guFSKUI5cSMGkU50mCH jUT21gfW9Ja/EDjZgaT1ZzMs4Va7dQwUx9893ozoB1z0NzqYSb+9LKKu8shxiE2I9jwy TM2w== X-Gm-Message-State: AOAM532+CUAxLX4b6g9Jki1uN2ocn9rsi8lBmi4ydN2vrAyjMAOWYyIZ Wdf5t2A+EfSHqEI4UpaMtjAq47FK X-Google-Smtp-Source: ABdhPJz9ZiRZawKnpzQ8NrpvRwUVn7PTqHaDjS3jl5FB+Z45d2KAJwO1QEhgPLjvj2jc4cvoQi3jgg== X-Received: by 2002:adf:ea0f:: with SMTP id q15mr9587873wrm.37.1592675017262; Sat, 20 Jun 2020 10:43:37 -0700 (PDT) Received: from desktop.lan (ip-86-49-35-8.net.upcbroadband.cz. [86.49.35.8]) by smtp.gmail.com with ESMTPSA id y7sm6312918wrt.11.2020.06.20.10.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2020 10:43:36 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Cc: Marek Vasut , Joe Hershberger , Ramon Fried Subject: [PATCH 1/4] net: dc2114x: Use PCI_DEVICE() to define PCI device compat list Date: Sat, 20 Jun 2020 19:43:19 +0200 Message-Id: <20200620174322.124245-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Use this macro to fully fill the PCI device ID table. This is mandatory for the DM PCI support, which checks all the fields. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Ramon Fried --- drivers/net/dc2114x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index c55358ef83..e537b29f3d 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -568,8 +568,8 @@ static void read_hw_addr(struct eth_device *dev, bd_t *bis) } static struct pci_device_id supported[] = { - { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST }, - { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21142 }, + { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST) }, + { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21142) }, { } };