summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/ocotp.c
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-12-06 23:32:04 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-10 09:56:04 +0100
commit1d48fdfe8be18e92ac8acc7890a6c238182ac331 (patch)
tree57a94328bfbd308a610863023b86a52f3265b0e4 /drivers/nvmem/ocotp.c
parentd5c0c8be3cc128dff9deac476d5cddf452875bbd (diff)
downloadbarebox-1d48fdfe8be18e92ac8acc7890a6c238182ac331.tar.gz
barebox-1d48fdfe8be18e92ac8acc7890a6c238182ac331.tar.xz
nvmem: ocotp: Make use of postcore_platform_driver macro
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/nvmem/ocotp.c')
-rw-r--r--drivers/nvmem/ocotp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/nvmem/ocotp.c b/drivers/nvmem/ocotp.c
index e0cf35f0b7..2952988f84 100644
--- a/drivers/nvmem/ocotp.c
+++ b/drivers/nvmem/ocotp.c
@@ -697,11 +697,4 @@ static struct driver_d imx_ocotp_driver = {
.probe = imx_ocotp_probe,
.of_compatible = DRV_OF_COMPAT(imx_ocotp_dt_ids),
};
-
-static int imx_ocotp_init(void)
-{
- platform_driver_register(&imx_ocotp_driver);
-
- return 0;
-}
-postcore_initcall(imx_ocotp_init);
+postcore_platform_driver(imx_ocotp_driver);