diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2015-01-02 15:11:49 +1100 |
---|---|---|
committer | Edward O'Callaghan <edward.ocallaghan@koparo.com> | 2015-04-09 19:34:22 +0200 |
commit | e9e1d7ab979b22f036ee423cc760561cd8cf1d62 (patch) | |
tree | 22ee916e30d7ea44fb6efb6c93d403da5bef3cbe /src/northbridge/amd/agesa/family12/northbridge.c | |
parent | c1a9dfe85be5aa7c634bd0facde2ed1e77d76bde (diff) | |
download | coreboot-e9e1d7ab979b22f036ee423cc760561cd8cf1d62.tar.xz |
northbridge/amd/agesa/familyXY: Make NULL device op explicit
Use 'DEVICE_NOOP' macro introduced in:
commit 530355d include/device/device.h: Provide DEVICE_NOOP macro shim
to provide formalism. Make the null device ops here explicit and
in-line with formalism elsewhere.
Change-Id: I2400b29a5108a6bae21959177e53321810ca1407
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/8035
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'src/northbridge/amd/agesa/family12/northbridge.c')
-rw-r--r-- | src/northbridge/amd/agesa/family12/northbridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/amd/agesa/family12/northbridge.c b/src/northbridge/amd/agesa/family12/northbridge.c index a3b34932b0..9d078ed33d 100644 --- a/src/northbridge/amd/agesa/family12/northbridge.c +++ b/src/northbridge/amd/agesa/family12/northbridge.c @@ -932,7 +932,7 @@ static struct device_operations pci_domain_ops = { .read_resources = domain_read_resources, .set_resources = domain_set_resources, .enable_resources = domain_enable_resources, - .init = NULL, + .init = DEVICE_NOOP, .scan_bus = pci_domain_scan_bus, }; @@ -940,7 +940,7 @@ static struct device_operations pci_domain_ops = { static struct device_operations cpu_bus_ops = { .read_resources = cpu_bus_read_resources, .set_resources = cpu_bus_set_resources, - .enable_resources = NULL, + .enable_resources = DEVICE_NOOP, .init = cpu_bus_init, .scan_bus = 0, }; |