Commit 392debf1 authored by Jingoo Han's avatar Jingoo Han Committed by Wolfram Sang
Browse files

i2c: remove DEFINE_PCI_DEVICE_TABLE macro



Don't use DEFINE_PCI_DEVICE_TABLE macro, because this macro
is not preferred.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 069a9502
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -494,7 +494,7 @@ static struct i2c_adapter ali1535_adapter = {
	.algo		= &smbus_algorithm,
};

static DEFINE_PCI_DEVICE_TABLE(ali1535_ids) = {
static const struct pci_device_id ali1535_ids[] = {
	{ PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) },
	{ },
};
+1 −1
Original line number Diff line number Diff line
@@ -416,7 +416,7 @@ static void ali1563_remove(struct pci_dev *dev)
	ali1563_shutdown(dev);
}

static DEFINE_PCI_DEVICE_TABLE(ali1563_id_table) = {
static const struct pci_device_id ali1563_id_table[] = {
	{ PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1563) },
	{},
};
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ static struct i2c_adapter ali15x3_adapter = {
	.algo		= &smbus_algorithm,
};

static DEFINE_PCI_DEVICE_TABLE(ali15x3_ids) = {
static const struct pci_device_id ali15x3_ids[] = {
	{ PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) },
	{ 0, }
};
+1 −1
Original line number Diff line number Diff line
@@ -307,7 +307,7 @@ static const char* chipname[] = {
	"nVidia nForce", "AMD8111",
};

static DEFINE_PCI_DEVICE_TABLE(amd756_ids) = {
static const struct pci_device_id amd756_ids[] = {
	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_740B),
	  .driver_data = AMD756 },
	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7413),
+1 −1
Original line number Diff line number Diff line
@@ -414,7 +414,7 @@ static const struct i2c_algorithm smbus_algorithm = {
};


static DEFINE_PCI_DEVICE_TABLE(amd8111_ids) = {
static const struct pci_device_id amd8111_ids[] = {
	{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS2) },
	{ 0, }
};
Loading