diff options
Diffstat (limited to 'drivers/serial/serial_digic.c')
-rw-r--r-- | drivers/serial/serial_digic.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/drivers/serial/serial_digic.c b/drivers/serial/serial_digic.c index d3cfa69e81..48e9cd3248 100644 --- a/drivers/serial/serial_digic.c +++ b/drivers/serial/serial_digic.c @@ -1,17 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2013, 2014 Antony Pavlov <antonynpavlov@gmail.com> * * This file is part of barebox. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 - * as published by the Free Software Foundation. - * - * 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> @@ -19,7 +10,7 @@ #include <malloc.h> #include <io.h> -#include <mach/uart.h> +#include <mach/digic/uart.h> /* * This driver is based on the "Serial terminal" docs here: @@ -98,7 +89,7 @@ static int digic_serial_tstc(struct console_device *cdev) */ } -static int digic_serial_probe(struct device_d *dev) +static int digic_serial_probe(struct device *dev) { struct resource *iores; struct console_device *cdev; @@ -126,8 +117,9 @@ static __maybe_unused struct of_device_id digic_serial_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, digic_serial_dt_ids); -static struct driver_d digic_serial_driver = { +static struct driver digic_serial_driver = { .name = "digic-uart", .probe = digic_serial_probe, .of_compatible = DRV_OF_COMPAT(digic_serial_dt_ids), |