diff options
Diffstat (limited to 'drivers/serial/serial_auart.c')
-rw-r--r-- | drivers/serial/serial_auart.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/drivers/serial/serial_auart.c b/drivers/serial/serial_auart.c index ee64f2f8db..217ac5c891 100644 --- a/drivers/serial/serial_auart.c +++ b/drivers/serial/serial_auart.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * (C) 2013 Marc Kleine-Budde <mkl@pengutronix.de> * @@ -23,17 +24,6 @@ * * Copyright 2008-2010 Freescale Semiconductor, Inc. * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. - * - * 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. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include <common.h> @@ -46,8 +36,6 @@ #include <linux/clk.h> #include <linux/err.h> -#include <mach/clock.h> - #define HW_UARTAPP_CTRL0 (0x00000000) #define HW_UARTAPP_CTRL2 (0x00000020) @@ -178,7 +166,7 @@ static void auart_serial_init_port(struct auart_priv *priv) writel(0x0, priv->base + HW_UARTAPP_INTR); } -static int auart_serial_probe(struct device_d *dev) +static int auart_serial_probe(struct device *dev) { struct resource *iores; struct auart_priv *priv; @@ -228,8 +216,9 @@ static const __maybe_unused struct of_device_id auart_serial_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, auart_serial_dt_ids); -static struct driver_d auart_serial_driver = { +static struct driver auart_serial_driver = { .name = "auart_serial", .probe = auart_serial_probe, .of_compatible = DRV_OF_COMPAT(auart_serial_dt_ids), |