Drop explicit NULL initializations from device_operations

Unmentioned fields are initialized with 0 (or NULL) implicitly. Beside
that, the struct has grown over the years. There are too many optional
fields to list them all.

Change-Id: Icb9e14c58153d7c14817bcde148e86e977666e4b
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40126
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes HAOUAS
2020-04-04 12:26:35 +02:00
committed by Nico Huber
parent 7c45c8363d
commit deeccbf4e9
123 changed files with 0 additions and 207 deletions

View File

@@ -67,7 +67,6 @@ static struct device_operations aspeed_ast2050_ops = {
.set_resources = aspeed_ast2050_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = aspeed_ast2050_init,
.scan_bus = 0,
};
static const struct pci_driver aspeed_ast2050_driver __pci_driver = {

View File

@@ -43,7 +43,6 @@ static struct device_operations dec_21143_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = dec_21143_enable,
.scan_bus = 0,
};
static const struct pci_driver dec_21143_driver __pci_driver = {

View File

@@ -140,7 +140,6 @@ static struct device_operations qemu_graph_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = bochs_init,
.scan_bus = 0,
};
static const struct pci_driver qemu_stdvga_driver __pci_driver = {

View File

@@ -340,7 +340,6 @@ static struct device_operations qemu_cirrus_graph_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = cirrus_init,
.scan_bus = 0,
};
static const struct pci_driver qemu_cirrus_driver __pci_driver = {

View File

@@ -228,8 +228,6 @@ static struct device_operations i210_ops = {
.set_resources = set_resources,
.enable_resources = pci_dev_enable_resources,
.init = init,
.scan_bus = 0,
.ops_pci = 0,
};
static const unsigned short i210_device_ids[] = { 0x1537, 0x1538, 0x1533, 0 };

View File

@@ -162,7 +162,6 @@ static struct device_operations atl1e_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = atl1e_init,
.scan_bus = 0,
};
static const struct pci_driver atl1e_driver __pci_driver = {

View File

@@ -317,8 +317,6 @@ static struct device_operations ne2k_ops = {
.read_resources = read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = 0,
.scan_bus = 0,
};
static const struct pci_driver ne2k_driver __pci_driver = {

View File

@@ -372,7 +372,6 @@ static struct device_operations r8168_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = r8168_init,
.scan_bus = 0,
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_name = r8168_net_acpi_name,
.acpi_fill_ssdt = r8168_net_fill_ssdt,

View File

@@ -58,7 +58,6 @@ static struct device_operations rce822_ops = {
.enable_resources = pci_dev_enable_resources,
.init = rce822_init,
.enable = rce822_enable,
.scan_bus = 0,
.ops_pci = &lops_pci,
};

View File

@@ -158,8 +158,6 @@ static struct device_operations nc_fpga_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = nc_fpga_init,
.scan_bus = 0,
.ops_pci = 0,
};
static const unsigned short nc_fpga_device_ids[] = { 0x4080, 0x4091, 0 };

View File

@@ -38,7 +38,6 @@ static struct device_operations si_sata_ops = {
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = si_sata_init,
.scan_bus = 0,
};
static const struct pci_driver si_sata_driver __pci_driver = {

View File

@@ -52,7 +52,6 @@ static struct device_operations oxford_oxpcie_ops = {
.set_resources = oxford_oxpcie_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = oxford_oxpcie_enable,
.scan_bus = 0,
};
static const struct pci_driver oxford_oxpcie_driver __pci_driver = {

View File

@@ -50,7 +50,6 @@ static struct device_operations xgi_z9s_ops = {
.set_resources = xgi_z9s_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = xgi_z9s_init,
.scan_bus = 0,
};
static const struct pci_driver xgi_z9s_driver __pci_driver = {