mainboard: Use DEVICE_NOOP macro over dummy symbol

Change-Id: I37c302c7a17645f55d568c1a5f7bb791319ddbb4
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7286
Tested-by: build bot (Jenkins)
Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
This commit is contained in:
Edward O'Callaghan 2014-10-31 08:04:30 +11:00
parent 0625a8bcfb
commit c3f38cd423
1 changed files with 3 additions and 7 deletions

View File

@ -262,14 +262,10 @@ static unsigned int cpu_bus_scan(device_t bus, unsigned int max)
return max_cpus; return max_cpus;
} }
static void cpu_bus_noop(device_t dev)
{
}
static struct device_operations cpu_bus_ops = { static struct device_operations cpu_bus_ops = {
.read_resources = cpu_bus_noop, .read_resources = DEVICE_NOOP,
.set_resources = cpu_bus_noop, .set_resources = DEVICE_NOOP,
.enable_resources = cpu_bus_noop, .enable_resources = DEVICE_NOOP,
.init = cpu_bus_init, .init = cpu_bus_init,
.scan_bus = cpu_bus_scan, .scan_bus = cpu_bus_scan,
}; };