summaryrefslogtreecommitdiff
path: root/src/cpu/allwinner
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-10-31 08:03:16 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-01 21:14:35 +0100
commit0625a8bcfb90ae8d68c07147cc5cb3172424f601 (patch)
tree5961b43d8efeeab4f80fad776fce9d6a376ef9c1 /src/cpu/allwinner
parent524625d4e0a6ee07b01960437a3f918c0f04a1bb (diff)
downloadcoreboot-0625a8bcfb90ae8d68c07147cc5cb3172424f601.tar.xz
{cpu,soc}: Use DEVICE_NOOP macro over dummy symbol
Change-Id: Iaf2b2873bd1c52d7f936bd9b483e194a0872a626 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/7285 Tested-by: build bot (Jenkins) Reviewed-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Diffstat (limited to 'src/cpu/allwinner')
-rw-r--r--src/cpu/allwinner/a10/cpu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cpu/allwinner/a10/cpu.c b/src/cpu/allwinner/a10/cpu.c
index fac5730020..3159f20422 100644
--- a/src/cpu/allwinner/a10/cpu.c
+++ b/src/cpu/allwinner/a10/cpu.c
@@ -25,13 +25,9 @@ static void cpu_init(struct device *dev)
/* TODO: Check if anything else needs to be explicitly initialized */
}
-static void cpu_noop(struct device *dev)
-{
-}
-
static struct device_operations cpu_ops = {
- .read_resources = cpu_noop,
- .set_resources = cpu_noop,
+ .read_resources = DEVICE_NOOP,
+ .set_resources = DEVICE_NOOP,
.enable_resources = cpu_enable_resources,
.init = cpu_init,
.scan_bus = NULL,