diff options
Diffstat (limited to 'drivers/serial/serial_ar933x.c')
-rw-r--r-- | drivers/serial/serial_ar933x.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index dda604652b..f5595ec1ee 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c @@ -1,19 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * based on linux.git/drivers/tty/serial/serial_ar933x.c - * - * See file CREDITS for list of people who contributed to this - * project. - * - * 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> @@ -21,7 +8,7 @@ #include <init.h> #include <malloc.h> #include <io.h> -#include <asm-generic/div64.h> +#include <linux/math64.h> #include <linux/clk.h> #include <linux/err.h> @@ -154,7 +141,7 @@ static int ar933x_serial_getc(struct console_device *cdev) return rdata & AR933X_UART_DATA_TX_RX_MASK; } -static int ar933x_serial_probe(struct device_d *dev) +static int ar933x_serial_probe(struct device *dev) { struct resource *iores; struct console_device *cdev; @@ -201,8 +188,9 @@ static struct of_device_id ar933x_serial_dt_ids[] = { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, ar933x_serial_dt_ids); -static struct driver_d ar933x_serial_driver = { +static struct driver ar933x_serial_driver = { .name = "ar933x_serial", .probe = ar933x_serial_probe, .of_compatible = DRV_OF_COMPAT(ar933x_serial_dt_ids), |