Drop unnecessary DEVICE_NOOP entries
Providing an explicit no-op function pointer is only necessary for `.read_resources` and `.set_resources`. All other device-operation pointers are optional and can be NULL. Change-Id: I3d139f7be86180558cabec04b8566873062e33be Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40206 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
9734325f45
commit
a461b694a6
|
@ -129,8 +129,6 @@ static const char *root_dev_acpi_name(const struct device *dev)
|
|||
struct device_operations default_dev_ops_root = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
.scan_bus = scan_static_bus,
|
||||
.reset_bus = root_dev_reset,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
|
|
|
@ -57,7 +57,6 @@ static const char *adau7002_acpi_name(const struct device *dev)
|
|||
static struct device_operations adau7002_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = adau7002_acpi_name,
|
||||
.acpi_fill_ssdt = adau7002_fill_ssdt,
|
||||
|
|
|
@ -70,7 +70,6 @@ static const char *generic_dev_acpi_name(const struct device *dev)
|
|||
static struct device_operations generic_dev_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = generic_dev_acpi_name,
|
||||
.acpi_fill_ssdt = generic_dev_fill_ssdt_generator,
|
||||
};
|
||||
|
|
|
@ -104,7 +104,6 @@ static const char *gpio_keys_acpi_name(const struct device *dev)
|
|||
static struct device_operations gpio_keys_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = gpio_keys_acpi_name,
|
||||
.acpi_fill_ssdt = gpio_keys_fill_ssdt_generator,
|
||||
};
|
||||
|
|
|
@ -61,7 +61,6 @@ static const char *gpio_regulator_acpi_name(const struct device *dev)
|
|||
static struct device_operations gpio_regulator_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = gpio_regulator_acpi_name,
|
||||
.acpi_fill_ssdt = gpio_regulator_fill_ssdt_generator,
|
||||
};
|
||||
|
|
|
@ -96,7 +96,6 @@ static void ioapic_read_resources(struct device *dev)
|
|||
static struct device_operations ioapic_operations = {
|
||||
.read_resources = ioapic_read_resources,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = ioapic_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -72,7 +72,6 @@ static const char *max98357a_acpi_name(const struct device *dev)
|
|||
static struct device_operations max98357a_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = max98357a_acpi_name,
|
||||
.acpi_fill_ssdt = max98357a_fill_ssdt,
|
||||
|
|
|
@ -80,7 +80,6 @@ static void adt7463_init(struct device *adt7463)
|
|||
static struct device_operations adt7463_operations = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = adt7463_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ static void at24rf08c_init(struct device *dev)
|
|||
static struct device_operations at24rf08c_operations = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = at24rf08c_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ static void ck505_init(struct device *dev)
|
|||
static struct device_operations ck505_operations = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = ck505_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -100,7 +100,6 @@ static const char *da7219_acpi_name(const struct device *dev)
|
|||
static struct device_operations da7219_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = da7219_acpi_name,
|
||||
.acpi_fill_ssdt = da7219_fill_ssdt,
|
||||
|
|
|
@ -182,7 +182,6 @@ static const char *i2c_generic_acpi_name(const struct device *dev)
|
|||
static struct device_operations i2c_generic_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = i2c_generic_acpi_name,
|
||||
.acpi_fill_ssdt = i2c_generic_fill_ssdt_generator,
|
||||
|
|
|
@ -39,7 +39,6 @@ static const char *i2c_hid_acpi_name(const struct device *dev)
|
|||
static struct device_operations i2c_hid_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = i2c_hid_acpi_name,
|
||||
.acpi_fill_ssdt = i2c_hid_fill_ssdt_generator,
|
||||
|
|
|
@ -207,7 +207,6 @@ static void lm96000_init(struct device *const dev)
|
|||
static struct device_operations lm96000_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = lm96000_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -77,7 +77,6 @@ static const char *max98373_acpi_name(const struct device *dev)
|
|||
static struct device_operations max98373_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = max98373_acpi_name,
|
||||
.acpi_fill_ssdt = max98373_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -73,7 +73,6 @@ static const char *max98927_acpi_name(const struct device *dev)
|
|||
static struct device_operations max98927_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = max98927_acpi_name,
|
||||
.acpi_fill_ssdt = max98927_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -88,7 +88,6 @@ static const char *nau8825_acpi_name(const struct device *dev)
|
|||
static struct device_operations nau8825_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = nau8825_acpi_name,
|
||||
.acpi_fill_ssdt = nau8825_fill_ssdt,
|
||||
|
|
|
@ -22,7 +22,6 @@ static void nct7802y_init(struct device *const dev)
|
|||
static struct device_operations nct7802y_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = nct7802y_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -41,9 +41,7 @@ static void pca9538_init(struct device *dev)
|
|||
static struct device_operations pca9538_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = pca9538_init,
|
||||
.final = DEVICE_NOOP
|
||||
};
|
||||
|
||||
static void pca9538_enable(struct device *dev)
|
||||
|
|
|
@ -120,7 +120,6 @@ static void pcf8523_init(struct device *dev)
|
|||
static struct device_operations pcf8523c_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = pcf8523_init,
|
||||
.final = pcf8523_final
|
||||
};
|
||||
|
|
|
@ -129,9 +129,7 @@ __weak int mb_adjust_cfg(struct ptn_3460_config *cfg_ptr)
|
|||
static struct device_operations ptn3460_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = ptn3460_init,
|
||||
.final = DEVICE_NOOP
|
||||
};
|
||||
|
||||
static void ptn3460_enable(struct device *dev)
|
||||
|
|
|
@ -86,7 +86,6 @@ static const char *rt1011_acpi_name(const struct device *dev)
|
|||
static struct device_operations rt1011_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = rt1011_acpi_name,
|
||||
.acpi_fill_ssdt = rt1011_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -77,7 +77,6 @@ static const char *rt5663_acpi_name(const struct device *dev)
|
|||
static struct device_operations rt5663_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = rt5663_acpi_name,
|
||||
.acpi_fill_ssdt = rt5663_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -227,7 +227,6 @@ static void rtd2132_init(struct device *dev)
|
|||
static struct device_operations rtd2132_operations = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = rtd2132_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -167,7 +167,6 @@ static void rx6110sa_init(struct device *dev)
|
|||
static struct device_operations rx6110sa_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = rx6110sa_init,
|
||||
.final = rx6110sa_final
|
||||
};
|
||||
|
|
|
@ -81,7 +81,6 @@ static const char *i2c_sx9310_acpi_name(const struct device *dev)
|
|||
static struct device_operations i2c_sx9310_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = i2c_sx9310_acpi_name,
|
||||
.acpi_fill_ssdt = i2c_sx9310_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -64,7 +64,6 @@ static const char *i2c_tpm_acpi_name(const struct device *dev)
|
|||
static struct device_operations i2c_tpm_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = i2c_tpm_acpi_name,
|
||||
.acpi_fill_ssdt = i2c_tpm_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -294,7 +294,6 @@ static void w83793_init(struct device *dev)
|
|||
static struct device_operations w83793_operations = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = w83793_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ static void ish_fill_ssdt_generator(struct device *dev)
|
|||
static struct device_operations intel_ish_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = ish_fill_ssdt_generator,
|
||||
};
|
||||
|
||||
|
|
|
@ -70,7 +70,6 @@ static const char *camera_acpi_name(const struct device *dev)
|
|||
static struct device_operations camera_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = camera_acpi_name,
|
||||
.acpi_fill_ssdt = camera_fill_ssdt,
|
||||
};
|
||||
|
|
|
@ -347,7 +347,6 @@ static void ipmi_read_resources(struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.read_resources = ipmi_read_resources,
|
||||
.set_resources = ipmi_set_resources,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = ipmi_kcs_init,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.write_acpi_tables = ipmi_write_acpi_tables,
|
||||
|
|
|
@ -192,7 +192,6 @@ static const char *spi_acpi_name(const struct device *dev)
|
|||
static struct device_operations spi_acpi_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.acpi_name = spi_acpi_name,
|
||||
.acpi_fill_ssdt = spi_acpi_fill_ssdt_generator,
|
||||
};
|
||||
|
|
|
@ -72,7 +72,6 @@ static void usb_acpi_fill_ssdt_generator(struct device *dev)
|
|||
static struct device_operations usb_acpi_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.scan_bus = scan_static_bus,
|
||||
.acpi_fill_ssdt = usb_acpi_fill_ssdt_generator,
|
||||
};
|
||||
|
|
|
@ -123,7 +123,6 @@ static void ene932_init(struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.init = ene932_init,
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
};
|
||||
|
||||
static struct pnp_info pnp_dev_info[] = {
|
||||
|
|
|
@ -438,7 +438,6 @@ static void lpc_ec_read_resources(struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.init = lpc_ec_init,
|
||||
.read_resources = lpc_ec_read_resources,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_name = google_chromeec_acpi_name,
|
||||
|
|
|
@ -219,7 +219,6 @@ static const char *wilco_ec_acpi_name(const struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.init = wilco_ec_init,
|
||||
.read_resources = wilco_ec_read_resources,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = wilco_ec_fill_ssdt_generator,
|
||||
.acpi_name = wilco_ec_acpi_name,
|
||||
|
|
|
@ -133,7 +133,6 @@ static void ene_kb3940q_init(struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.init = ene_kb3940q_init,
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
};
|
||||
|
||||
static struct pnp_info pnp_dev_info[] = {
|
||||
|
|
|
@ -147,7 +147,6 @@ static void it8518_init(struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.init = it8518_init,
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
};
|
||||
|
||||
static struct pnp_info pnp_dev_info[] = {
|
||||
|
|
|
@ -36,7 +36,6 @@ static void it8518_init(struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.init = it8518_init,
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
};
|
||||
|
||||
static struct pnp_info pnp_dev_info[] = {
|
||||
|
|
|
@ -275,7 +275,6 @@ static void cpu_bus_scan(struct device *bus)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -818,7 +818,6 @@ struct chip_operations northbridge_amd_agesa_family14_ops = {
|
|||
static struct device_operations pci_domain_ops = {
|
||||
.read_resources = domain_read_resources,
|
||||
.set_resources = domain_set_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.scan_bus = pci_domain_scan_bus,
|
||||
.acpi_name = domain_acpi_name,
|
||||
};
|
||||
|
@ -826,7 +825,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -549,7 +549,6 @@ static struct device_operations northbridge_operations = {
|
|||
.read_resources = nb_read_resources,
|
||||
.set_resources = nb_set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = northbridge_fill_ssdt_generator,
|
||||
.write_acpi_tables = agesa_write_acpi_tables,
|
||||
};
|
||||
|
@ -762,7 +761,6 @@ static void domain_set_resources(struct device *dev)
|
|||
static struct device_operations pci_domain_ops = {
|
||||
.read_resources = domain_read_resources,
|
||||
.set_resources = domain_set_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.scan_bus = pci_domain_scan_bus,
|
||||
};
|
||||
|
||||
|
@ -896,7 +894,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -548,7 +548,6 @@ static struct device_operations northbridge_operations = {
|
|||
.read_resources = read_resources,
|
||||
.set_resources = set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = northbridge_fill_ssdt_generator,
|
||||
.write_acpi_tables = agesa_write_acpi_tables,
|
||||
};
|
||||
|
@ -788,7 +787,6 @@ static const char *domain_acpi_name(const struct device *dev)
|
|||
static struct device_operations pci_domain_ops = {
|
||||
.read_resources = domain_read_resources,
|
||||
.set_resources = domain_set_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.scan_bus = pci_domain_scan_bus,
|
||||
.acpi_name = domain_acpi_name,
|
||||
};
|
||||
|
@ -923,7 +921,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -543,7 +543,6 @@ static struct device_operations northbridge_operations = {
|
|||
.read_resources = read_resources,
|
||||
.set_resources = set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = northbridge_fill_ssdt_generator,
|
||||
.write_acpi_tables = agesa_write_acpi_tables,
|
||||
};
|
||||
|
@ -897,7 +896,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -904,7 +904,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -1260,7 +1260,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
.scan_bus = cpu_bus_scan,
|
||||
};
|
||||
|
|
|
@ -82,7 +82,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -228,7 +228,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -484,7 +484,6 @@ static const struct pci_driver mc_driver_hsw __pci_driver = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ static void cpu_bus_init(struct device *dev)
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -200,7 +200,6 @@ static const struct pci_driver mc_driver __pci_driver = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -255,7 +255,6 @@ static const struct pci_driver mc_driver_ard __pci_driver = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -184,7 +184,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -461,7 +461,6 @@ static const struct pci_driver mc_driver __pci_driver = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -179,7 +179,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = mp_cpu_bus_init,
|
||||
};
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ extern const char *i2c_acpi_name(const struct device *dev);
|
|||
struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = picasso_init_cpus,
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
};
|
||||
|
|
|
@ -128,7 +128,6 @@ struct device_operations picasso_i2c_mmio_ops = {
|
|||
/* TODO(teravest): Move I2C resource info here. */
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.scan_bus = scan_smbus,
|
||||
.acpi_name = i2c_acpi_name,
|
||||
.acpi_fill_ssdt = dw_i2c_acpi_fill_ssdt,
|
||||
|
|
|
@ -26,7 +26,6 @@ extern const char *i2c_acpi_name(const struct device *dev);
|
|||
struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = stoney_init_cpus,
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
};
|
||||
|
|
|
@ -112,7 +112,6 @@ struct device_operations stoneyridge_i2c_mmio_ops = {
|
|||
/* TODO(teravest): Move I2C resource info here. */
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.scan_bus = scan_smbus,
|
||||
.acpi_name = i2c_acpi_name,
|
||||
.acpi_fill_ssdt = dw_i2c_acpi_fill_ssdt,
|
||||
|
|
|
@ -382,7 +382,6 @@ static void soc_final(struct device *dev)
|
|||
static struct device_operations soc_ops = {
|
||||
.read_resources = soc_read_resources,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = soc_init,
|
||||
.final = soc_final,
|
||||
};
|
||||
|
|
|
@ -221,7 +221,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = apollolake_init_cpus,
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
};
|
||||
|
|
|
@ -23,7 +23,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = baytrail_init_cpus,
|
||||
};
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = soc_init_cpus
|
||||
};
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = &broadwell_init_cpus,
|
||||
};
|
||||
|
||||
|
|
|
@ -186,8 +186,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
};
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = denverton_init_cpus,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
|
|
|
@ -53,7 +53,6 @@ static struct device_operations uart_ops = {
|
|||
.set_resources = pci_dev_set_resources,
|
||||
.enable_resources = pci_dev_enable_resources,
|
||||
.init = pci_dev_init,
|
||||
.enable = DEVICE_NOOP
|
||||
};
|
||||
|
||||
static const struct pci_driver uart_driver __pci_driver = {
|
||||
|
|
|
@ -142,8 +142,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
};
|
||||
|
||||
|
|
|
@ -149,8 +149,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
#endif
|
||||
|
|
|
@ -97,8 +97,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
#endif
|
||||
|
|
|
@ -149,8 +149,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_fill_ssdt = generate_cpu_entries,
|
||||
#endif
|
||||
|
|
|
@ -33,7 +33,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = cpx_init_cpus,
|
||||
};
|
||||
|
||||
|
|
|
@ -484,7 +484,6 @@ static struct device_operations pci_domain_ops = {
|
|||
static struct device_operations cpu_bus_ops = {
|
||||
.read_resources = DEVICE_NOOP,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = xeon_sp_init_cpus,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
/* defined in src/soc/intel/common/block/acpi/acpi.c */
|
||||
|
|
|
@ -52,8 +52,6 @@ static void soc_read_resources(struct device *dev)
|
|||
static struct device_operations soc_ops = {
|
||||
.read_resources = soc_read_resources,
|
||||
.set_resources = DEVICE_NOOP,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.init = DEVICE_NOOP,
|
||||
};
|
||||
|
||||
static void enable_tegra210_dev(struct device *dev)
|
||||
|
|
|
@ -36,7 +36,6 @@ static struct device_operations pci_ops = {
|
|||
.read_resources = pci_bus_read_resources,
|
||||
.set_resources = pci_dev_set_resources,
|
||||
.enable_resources = pci_bus_enable_resources,
|
||||
.init = DEVICE_NOOP,
|
||||
.scan_bus = pci_scan_bridge,
|
||||
.reset_bus = pci_bus_reset,
|
||||
.ops_pci = &lops_pci,
|
||||
|
|
|
@ -297,7 +297,6 @@ static const char *generic_acpi_name(const struct device *dev)
|
|||
static struct device_operations ops = {
|
||||
.read_resources = generic_read_resources,
|
||||
.set_resources = generic_set_resources,
|
||||
.enable_resources = DEVICE_NOOP,
|
||||
.scan_bus = scan_static_bus,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
.acpi_fill_ssdt = generic_ssdt,
|
||||
|
|
|
@ -72,7 +72,7 @@ void mainboard_chromeos_acpi_generate(void);
|
|||
#if CONFIG(CHROMEOS)
|
||||
void chromeos_dsdt_generator(struct device *dev);
|
||||
#else
|
||||
#define chromeos_dsdt_generator DEVICE_NOOP
|
||||
#define chromeos_dsdt_generator NULL
|
||||
#endif
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Reference in New Issue