northbridge/amd: Use DEVICE_NOOP macro over dummy symbol
Change-Id: I3fdd2a9f981592112998d74ce4cfe4850d8fab31 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7288 Tested-by: build bot (Jenkins) Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
This commit is contained in:
@@ -1081,10 +1081,6 @@ 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 void cpu_bus_read_resources(device_t dev)
|
static void cpu_bus_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
#if CONFIG_MMCONF_SUPPORT
|
#if CONFIG_MMCONF_SUPPORT
|
||||||
@@ -1108,7 +1104,7 @@ static void cpu_bus_set_resources(device_t dev)
|
|||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = cpu_bus_read_resources,
|
.read_resources = cpu_bus_read_resources,
|
||||||
.set_resources = cpu_bus_set_resources,
|
.set_resources = cpu_bus_set_resources,
|
||||||
.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,
|
||||||
};
|
};
|
||||||
|
@@ -1376,10 +1376,6 @@ 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 void cpu_bus_read_resources(device_t dev)
|
static void cpu_bus_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
#if CONFIG_MMCONF_SUPPORT
|
#if CONFIG_MMCONF_SUPPORT
|
||||||
@@ -1403,7 +1399,7 @@ static void cpu_bus_set_resources(device_t dev)
|
|||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = cpu_bus_read_resources,
|
.read_resources = cpu_bus_read_resources,
|
||||||
.set_resources = cpu_bus_set_resources,
|
.set_resources = cpu_bus_set_resources,
|
||||||
.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,
|
||||||
};
|
};
|
||||||
|
@@ -1092,10 +1092,6 @@ 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 void cpu_bus_read_resources(device_t dev)
|
static void cpu_bus_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -1107,7 +1103,7 @@ static void cpu_bus_set_resources(device_t dev)
|
|||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = cpu_bus_read_resources,
|
.read_resources = cpu_bus_read_resources,
|
||||||
.set_resources = cpu_bus_set_resources,
|
.set_resources = cpu_bus_set_resources,
|
||||||
.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,
|
||||||
};
|
};
|
||||||
|
@@ -1054,10 +1054,6 @@ 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 void cpu_bus_read_resources(device_t dev)
|
static void cpu_bus_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -1069,7 +1065,7 @@ static void cpu_bus_set_resources(device_t dev)
|
|||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = cpu_bus_read_resources,
|
.read_resources = cpu_bus_read_resources,
|
||||||
.set_resources = cpu_bus_set_resources,
|
.set_resources = cpu_bus_set_resources,
|
||||||
.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,
|
||||||
};
|
};
|
||||||
|
@@ -1060,10 +1060,6 @@ 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 void cpu_bus_read_resources(device_t dev)
|
static void cpu_bus_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
#if CONFIG_MMCONF_SUPPORT
|
#if CONFIG_MMCONF_SUPPORT
|
||||||
@@ -1087,7 +1083,7 @@ static void cpu_bus_set_resources(device_t dev)
|
|||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = cpu_bus_read_resources,
|
.read_resources = cpu_bus_read_resources,
|
||||||
.set_resources = cpu_bus_set_resources,
|
.set_resources = cpu_bus_set_resources,
|
||||||
.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,
|
||||||
};
|
};
|
||||||
|
@@ -1411,10 +1411,6 @@ static void cpu_bus_init(device_t dev)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cpu_bus_noop(device_t dev)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void cpu_bus_read_resources(device_t dev)
|
static void cpu_bus_read_resources(device_t dev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -1431,7 +1427,7 @@ static void cpu_bus_set_resources(device_t dev)
|
|||||||
static struct device_operations cpu_bus_ops = {
|
static struct device_operations cpu_bus_ops = {
|
||||||
.read_resources = cpu_bus_read_resources,
|
.read_resources = cpu_bus_read_resources,
|
||||||
.set_resources = cpu_bus_set_resources,
|
.set_resources = cpu_bus_set_resources,
|
||||||
.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,
|
||||||
};
|
};
|
||||||
|
@@ -1350,14 +1350,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 = cpu_bus_scan,
|
.scan_bus = cpu_bus_scan,
|
||||||
};
|
};
|
||||||
|
@@ -132,14 +132,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,
|
||||||
};
|
};
|
||||||
|
@@ -325,14 +325,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,
|
||||||
};
|
};
|
||||||
|
@@ -429,14 +429,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,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user