diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-02-12 22:08:57 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-13 09:23:28 +0100 |
commit | 6a256321b839534cb3da4b8ffc06c126871a78e3 (patch) | |
tree | 0af3a40fc1fa2892b8cab21085e559e4dc56a91d /arch/sandbox/board/hostfile.c | |
parent | 12ff7635353503e90ffbfe2f69436e4725a64b50 (diff) | |
download | barebox-6a256321b839534cb3da4b8ffc06c126871a78e3.tar.gz barebox-6a256321b839534cb3da4b8ffc06c126871a78e3.tar.xz |
Use new device_platform_driver() macro for drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/board/hostfile.c')
-rw-r--r-- | arch/sandbox/board/hostfile.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index a3ebe19fa5..48c6ea35a8 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -89,13 +89,7 @@ static struct driver_d hf_drv = { .probe = hf_probe, .info = hf_info, }; - -static int hf_init(void) -{ - return platform_driver_register(&hf_drv); -} - -device_initcall(hf_init); +device_platform_driver(hf_drv); int barebox_register_filedev(struct hf_platform_data *hf) { |