northbridge/intel: Use DEVICE_NOOP macro over dummy symbol

Change-Id: I9aeed70f72d4df260312df6e53379f1741415b65
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7287
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:12:34 +11:00
parent c3f38cd423
commit 9f74462790
19 changed files with 57 additions and 134 deletions

View File

@ -115,14 +115,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -122,14 +122,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -175,14 +175,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -174,14 +174,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -263,15 +263,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -380,15 +380,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -212,14 +212,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -485,14 +485,10 @@ static void cpu_bus_init(device_t dev)
bsp_init_and_start_aps(dev->link_list); bsp_init_and_start_aps(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -224,14 +224,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -86,14 +86,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -112,14 +112,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -144,13 +144,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -141,14 +141,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -108,14 +108,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -124,14 +124,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -279,14 +279,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -329,14 +329,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -476,14 +476,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };

View File

@ -297,14 +297,10 @@ static void cpu_bus_init(device_t dev)
initialize_cpus(dev->link_list); initialize_cpus(dev->link_list);
} }
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 = 0, .scan_bus = 0,
}; };