Received: by 10.223.185.116 with SMTP id b49csp4952502wrg; Tue, 27 Feb 2018 05:32:04 -0800 (PST) X-Google-Smtp-Source: AG47ELvygi+CDePZDYKgonXbdPZ+OeUziW8Q3c5oqX3KfzJ/V4PVDcnQS+7ncpZsZNf39PYlX0j/ X-Received: by 10.101.100.144 with SMTP id e16mr620079pgv.315.1519738324640; Tue, 27 Feb 2018 05:32:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519738324; cv=none; d=google.com; s=arc-20160816; b=VxXyQlgQc9xQJUCqv8hlGflJEuIQRpAoUFpXhFO6ww9jfXKK020zFi7DN/Jb9jcLz+ cSxY86EUXWotMyYmCKHxArDPGL/FyVVBU7Ohjslnnll759fzP+v8pdhpQ+1tAa1T+ZSp 0ao/GhmmclVAxn/q4k0HNfxVeMsn32BPSjFvrxF9GTiSeINxxpxswodqfhAxPuDqJEmg Fh/44gyL5pIiapKoKSQa6or24Q6LZkz9mC6hK7USHFLcGlGnakwC9yYoZouxuamO2xAI DqJdDNSrB7Z1l6jBlMMJXX+xfNvGuTU/WtZJiT2IZoHotoHlO/iKWvULPXk4HOvX4EWi SymA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=R/FJk99qdgDZMHGpype2z+l0phwtR+vJPUsdhwl6Reo=; b=bz4QEn24lj5mp+DmmU+hbNizAp6fbUL5x1DlckjL8kqcYIJSyCFeG+e9ixIx3WTLkl gIwuG0sXGW04KWAwHCABCFWZWJlBD5vaSQJgEWnu/N7iC1qKbFMyS10/0TsfBpRnEMHR YwLplk8Depy0twiAbmVxQkEeFPBP1DLLkX6ket53LaFAUHqt3ehLUtwMY8AuGN3jlwph 948xYxFSVci4OIq0MekZhJ9DQ+ZbbqtFoqaogXG76WIxO5+PV2ZNVT676pd3IW12rC7I JSuroGBn8K40aD+xPD2zLpRJU3V/jbDChWoMESpreTg/Bb3D2K6fOZyxjoPB7QuBETmu +DuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1-v6si3192461plb.281.2018.02.27.05.31.50; Tue, 27 Feb 2018 05:32:04 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753294AbeB0Nab (ORCPT + 99 others); Tue, 27 Feb 2018 08:30:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:55782 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753119AbeB0Na1 (ORCPT ); Tue, 27 Feb 2018 08:30:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 56EA1AE83; Tue, 27 Feb 2018 13:30:26 +0000 (UTC) From: Johannes Thumshirn To: Greg KH Cc: Linux Kernel Mailinglist , Michael Moese , Johannes Thumshirn , Bjorn Helgaas , Eli Billauer , Anatolij Gustschin Subject: [PATCH 1/2] PCI: add vendor id for Altera Date: Tue, 27 Feb 2018 14:30:17 +0100 Message-Id: <20180227133018.7732-2-jthumshirn@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180227133018.7732-1-jthumshirn@suse.de> References: <20180227133018.7732-1-jthumshirn@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the Altera PCI Vendor id to pci_ids.h and remove the private definitions from xillybus_pcie.c and altera-cvp.c. Signed-off-by: Johannes Thumshirn Cc: Bjorn Helgaas Cc: Eli Billauer Cc: Anatolij Gustschin --- drivers/char/xillybus/xillybus_pcie.c | 2 +- drivers/fpga/altera-cvp.c | 3 +-- include/linux/pci_ids.h | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/char/xillybus/xillybus_pcie.c b/drivers/char/xillybus/xillybus_pcie.c index dff2d1538164..b888f7c44a09 100644 --- a/drivers/char/xillybus/xillybus_pcie.c +++ b/drivers/char/xillybus/xillybus_pcie.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include "xillybus.h" @@ -24,7 +25,6 @@ MODULE_LICENSE("GPL v2"); #define PCI_DEVICE_ID_XILLYBUS 0xebeb -#define PCI_VENDOR_ID_ALTERA 0x1172 #define PCI_VENDOR_ID_ACTEL 0x11aa #define PCI_VENDOR_ID_LATTICE 0x1204 diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c index 00e73d28077c..53ee426d425f 100644 --- a/drivers/fpga/altera-cvp.c +++ b/drivers/fpga/altera-cvp.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #define CVP_BAR 0 /* BAR used for data transfer in memory mode */ @@ -384,8 +385,6 @@ static int altera_cvp_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id); static void altera_cvp_remove(struct pci_dev *pdev); -#define PCI_VENDOR_ID_ALTERA 0x1172 - static struct pci_device_id altera_cvp_id_tbl[] = { { PCI_VDEVICE(ALTERA, PCI_ANY_ID) }, { } diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index a6b30667a331..6a96a70fb462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1561,6 +1561,8 @@ #define PCI_DEVICE_ID_SERVERWORKS_CSB6LPC 0x0227 #define PCI_DEVICE_ID_SERVERWORKS_HT1100LD 0x0408 +#define PCI_VENDOR_ID_ALTERA 0x1172 + #define PCI_VENDOR_ID_SBE 0x1176 #define PCI_DEVICE_ID_SBE_WANXL100 0x0301 #define PCI_DEVICE_ID_SBE_WANXL200 0x0302 -- 2.13.6