diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-28 09:22:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-29 10:09:59 +0200 |
commit | 77e74ddca1a30ea1ac4bb9de55917f6b69290b41 (patch) | |
tree | bd3204786362f0f7f8ad6e1eeb76e30a2a73a666 /drivers/clocksource/amba-sp804.c | |
parent | d877a4436bb960e6b942510c3de37b9bd048c1ba (diff) | |
download | barebox-77e74ddca1a30ea1ac4bb9de55917f6b69290b41.tar.gz barebox-77e74ddca1a30ea1ac4bb9de55917f6b69290b41.tar.xz |
treewide: Use driver macro
We have several macros for a oneline driver registration. Add some
missing and use them consistently where possible througout the tree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource/amba-sp804.c')
-rw-r--r-- | drivers/clocksource/amba-sp804.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/clocksource/amba-sp804.c b/drivers/clocksource/amba-sp804.c index 66e3988b4c..8ed5ae4be0 100644 --- a/drivers/clocksource/amba-sp804.c +++ b/drivers/clocksource/amba-sp804.c @@ -85,8 +85,4 @@ struct amba_driver sp804_driver = { .id_table = sp804_ids, }; -static int sp804_init(void) -{ - return amba_driver_register(&sp804_driver); -} -coredevice_initcall(sp804_init); +coredevice_platform_driver(sp804_driver); |