summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-03-22 11:48:35 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-03-22 11:48:35 +0100
commitaeffc1b967dfabbd5b94fcdda048d10631a51b78 (patch)
treedfcfd4138c13236b79e53c920363a051f42899dd
parent8a7d2be46eb8e2ef7761fc2c873f8e8e74a92816 (diff)
downloadbarebox-aeffc1b967dfabbd5b94fcdda048d10631a51b78.tar.gz
barebox-aeffc1b967dfabbd5b94fcdda048d10631a51b78.tar.xz
Revert "boards: qemu-virt: ensure board driver probe at postcore_initcall level"
This reverts commit f517a02bf8580446a54e62dea54a7275ad8728cc.
-rw-r--r--common/boards/qemu-virt/board.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/common/boards/qemu-virt/board.c b/common/boards/qemu-virt/board.c
index 2669e9de5a..e1202034f5 100644
--- a/common/boards/qemu-virt/board.c
+++ b/common/boards/qemu-virt/board.c
@@ -70,14 +70,4 @@ static struct driver virt_board_driver = {
.of_compatible = virt_of_match,
};
-static int virt_board_driver_init(void)
-{
- int ret;
-
- ret = platform_driver_register(&virt_board_driver);
- if (ret)
- return ret;
-
- return of_devices_ensure_probed_by_dev_id(virt_of_match);
-}
-postcore_initcall(virt_board_driver_init);
+postcore_platform_driver(virt_board_driver);