soc: Use DEVICE_NOOP macro formalism over static stub func
Change-Id: Ice7e27230010ffc48948f952394e849533f94085 Signed-off-by: Edward O'Callaghan <edward.ocallaghan@koparo.com> Reviewed-on: http://review.coreboot.org/8989 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
This commit is contained in:
parent
b95be26096
commit
c1a9dfe85b
|
@ -86,14 +86,10 @@ static void soc_init(device_t dev)
|
||||||
arch_initialize_cpus(dev, &cntrl_ops);
|
arch_initialize_cpus(dev, &cntrl_ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soc_noop(device_t dev)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations soc_ops = {
|
static struct device_operations soc_ops = {
|
||||||
.read_resources = soc_read_resources,
|
.read_resources = soc_read_resources,
|
||||||
.set_resources = soc_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = soc_noop,
|
.enable_resources = DEVICE_NOOP,
|
||||||
.init = soc_init,
|
.init = soc_init,
|
||||||
.scan_bus = NULL,
|
.scan_bus = NULL,
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,21 +35,11 @@ static void soc_enable(device_t dev)
|
||||||
ram_resource(dev, 0, RAM_BASE_KB, RAM_SIZE_KB);
|
ram_resource(dev, 0, RAM_BASE_KB, RAM_SIZE_KB);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void soc_init(device_t dev)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static void soc_noop(device_t dev)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct device_operations soc_ops = {
|
static struct device_operations soc_ops = {
|
||||||
.read_resources = soc_noop,
|
.read_resources = DEVICE_NOOP,
|
||||||
.set_resources = soc_noop,
|
.set_resources = DEVICE_NOOP,
|
||||||
.enable_resources = soc_enable,
|
.enable_resources = soc_enable,
|
||||||
.init = soc_init,
|
.init = DEVICE_NOOP,
|
||||||
.scan_bus = 0,
|
.scan_bus = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue