summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x
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-bcm283x
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-bcm283x')
-rw-r--r--arch/arm/mach-bcm283x/mbox.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-bcm283x/mbox.c b/arch/arm/mach-bcm283x/mbox.c
index 22abbb0ca5..9839683d03 100644
--- a/arch/arm/mach-bcm283x/mbox.c
+++ b/arch/arm/mach-bcm283x/mbox.c
@@ -179,8 +179,4 @@ static struct driver_d bcm2835_mbox_driver = {
.probe = bcm2835_mbox_probe,
};
-static int __init bcm2835_mbox_init(void)
-{
- return platform_driver_register(&bcm2835_mbox_driver);
-}
-core_initcall(bcm2835_mbox_init);
+core_platform_driver(bcm2835_mbox_driver);