diff options
Diffstat (limited to 'arch/arm/mach-imx/src.c')
-rw-r--r-- | arch/arm/mach-imx/src.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/arch/arm/mach-imx/src.c b/arch/arm/mach-imx/src.c index 73350d15e1..ec8d1bf6f6 100644 --- a/arch/arm/mach-imx/src.c +++ b/arch/arm/mach-imx/src.c @@ -1,11 +1,5 @@ -/* - * Copyright 2016 Sascha Hauer <s.hauer@pengutronix.de> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - */ +// SPDX-License-Identifier: GPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Sascha Hauer <s.hauer@pengutronix.de> #include <common.h> #include <init.h> @@ -16,7 +10,7 @@ #define SCR_WARM_RESET_ENABLE BIT(0) -static int imx_src_reset_probe(struct device_d *dev) +static int imx_src_reset_probe(struct device *dev) { struct resource *res; u32 val; @@ -43,15 +37,11 @@ static const struct of_device_id imx_src_dt_ids[] = { { .compatible = "fsl,imx51-src", }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, imx_src_dt_ids); -static struct driver_d imx_src_reset_driver = { +static struct driver imx_src_reset_driver = { .name = "imx-src", .probe = imx_src_reset_probe, .of_compatible = DRV_OF_COMPAT(imx_src_dt_ids), }; - -static int imx_src_reset_init(void) -{ - return platform_driver_register(&imx_src_reset_driver); -} -postcore_initcall(imx_src_reset_init); +postcore_platform_driver(imx_src_reset_driver); |