summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/am33xx_scrm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-08-28 09:22:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 10:09:59 +0200
commit77e74ddca1a30ea1ac4bb9de55917f6b69290b41 (patch)
treebd3204786362f0f7f8ad6e1eeb76e30a2a73a666 /arch/arm/mach-omap/am33xx_scrm.c
parentd877a4436bb960e6b942510c3de37b9bd048c1ba (diff)
downloadbarebox-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 'arch/arm/mach-omap/am33xx_scrm.c')
-rw-r--r--arch/arm/mach-omap/am33xx_scrm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-omap/am33xx_scrm.c b/arch/arm/mach-omap/am33xx_scrm.c
index f03fb2bf6a..80510cf5b4 100644
--- a/arch/arm/mach-omap/am33xx_scrm.c
+++ b/arch/arm/mach-omap/am33xx_scrm.c
@@ -43,9 +43,4 @@ static struct driver_d am33xx_scrm_driver = {
.of_compatible = DRV_OF_COMPAT(am33xx_scrm_dt_ids),
};
-static int am33xx_scrm_init(void)
-{
- return platform_driver_register(&am33xx_scrm_driver);
-}
-
-mem_initcall(am33xx_scrm_init);
+mem_platform_driver(am33xx_scrm_driver);