Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba935f40 authored by Jingoo Han's avatar Jingoo Han Committed by Borislav Petkov
Browse files

EDAC: Remove DEFINE_PCI_DEVICE_TABLE macro



Currently, there is no other bus that has something like this macro for
their device ids. Thus, DEFINE_PCI_DEVICE_TABLE macro should be removed.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Link: http://lkml.kernel.org/r/001c01ceefb3$5724d860$056e8920$%han@samsung.com


[ Boris: swap commit message with better one. ]
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent 7f3f5240
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2795,7 +2795,7 @@ static void amd64_remove_one_instance(struct pci_dev *pdev)
 * PCI core identifies what devices are on a system during boot, and then
 * inquiry this table to see if this driver is for a given device found.
 */
static DEFINE_PCI_DEVICE_TABLE(amd64_pci_table) = {
static const struct pci_device_id amd64_pci_table[] = {
	{
		.vendor		= PCI_VENDOR_ID_AMD,
		.device		= PCI_DEVICE_ID_AMD_K8_NB_MEMCTL,
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ static void amd76x_remove_one(struct pci_dev *pdev)
	edac_mc_free(mci);
}

static DEFINE_PCI_DEVICE_TABLE(amd76x_pci_tbl) = {
static const struct pci_device_id amd76x_pci_tbl[] = {
	{
	 PCI_VEND_DEV(AMD, FE_GATE_700C), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
	 AMD762},
+1 −1
Original line number Diff line number Diff line
@@ -1421,7 +1421,7 @@ static void e752x_remove_one(struct pci_dev *pdev)
	edac_mc_free(mci);
}

static DEFINE_PCI_DEVICE_TABLE(e752x_pci_tbl) = {
static const struct pci_device_id e752x_pci_tbl[] = {
	{
	 PCI_VEND_DEV(INTEL, 7520_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
	 E7520},
+1 −1
Original line number Diff line number Diff line
@@ -555,7 +555,7 @@ static void e7xxx_remove_one(struct pci_dev *pdev)
	edac_mc_free(mci);
}

static DEFINE_PCI_DEVICE_TABLE(e7xxx_pci_tbl) = {
static const struct pci_device_id e7xxx_pci_tbl[] = {
	{
	 PCI_VEND_DEV(INTEL, 7205_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
	 E7205},
+1 −1
Original line number Diff line number Diff line
@@ -487,7 +487,7 @@ static void i3000_remove_one(struct pci_dev *pdev)
	edac_mc_free(mci);
}

static DEFINE_PCI_DEVICE_TABLE(i3000_pci_tbl) = {
static const struct pci_device_id i3000_pci_tbl[] = {
	{
	 PCI_VEND_DEV(INTEL, 3000_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
	 I3000},
Loading