diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/nvidia/tegra132/soc.c | 8 | ||||
-rw-r--r-- | src/soc/rockchip/rk3288/soc.c | 16 |
2 files changed, 5 insertions, 19 deletions
diff --git a/src/soc/nvidia/tegra132/soc.c b/src/soc/nvidia/tegra132/soc.c index b3841135f3..1072467818 100644 --- a/src/soc/nvidia/tegra132/soc.c +++ b/src/soc/nvidia/tegra132/soc.c @@ -86,14 +86,10 @@ static void soc_init(device_t dev) arch_initialize_cpus(dev, &cntrl_ops); } -static void soc_noop(device_t dev) -{ -} - static struct device_operations soc_ops = { .read_resources = soc_read_resources, - .set_resources = soc_noop, - .enable_resources = soc_noop, + .set_resources = DEVICE_NOOP, + .enable_resources = DEVICE_NOOP, .init = soc_init, .scan_bus = NULL, }; diff --git a/src/soc/rockchip/rk3288/soc.c b/src/soc/rockchip/rk3288/soc.c index f5e52eb4e2..e379644680 100644 --- a/src/soc/rockchip/rk3288/soc.c +++ b/src/soc/rockchip/rk3288/soc.c @@ -35,21 +35,11 @@ static void soc_enable(device_t dev) 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 = { - .read_resources = soc_noop, - .set_resources = soc_noop, + .read_resources = DEVICE_NOOP, + .set_resources = DEVICE_NOOP, .enable_resources = soc_enable, - .init = soc_init, + .init = DEVICE_NOOP, .scan_bus = 0, }; |