summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2020-11-09 14:44:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-12 11:28:20 +0100
commitbae260ab38cc98b7482f271dc9a9b1c24cbdaf93 (patch)
treee20fa7587ef4e6188ac4abe763124f0e5ace6900 /drivers/clocksource
parentb93dfbbac6769c2f129777d4cbfaa0f466297a77 (diff)
downloadbarebox-bae260ab38cc98b7482f271dc9a9b1c24cbdaf93.tar.gz
barebox-bae260ab38cc98b7482f271dc9a9b1c24cbdaf93.tar.xz
amba: add *_amba_driver helper macros
Reuse the flexible register_driver_macro() to add {device,coredevice,console}_amba_driver to get rid of the init boilerplate code used within the amba drivers. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/amba-sp804.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/amba-sp804.c b/drivers/clocksource/amba-sp804.c
index 8ed5ae4be0..0c0ecaa83a 100644
--- a/drivers/clocksource/amba-sp804.c
+++ b/drivers/clocksource/amba-sp804.c
@@ -85,4 +85,4 @@ struct amba_driver sp804_driver = {
.id_table = sp804_ids,
};
-coredevice_platform_driver(sp804_driver);
+coredevice_amba_driver(sp804_driver);