]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/serial/serial_max3100.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / drivers / serial / serial_max3100.c
index b21fba0691604012373d375c1075a35df9efe4c2..027d9194a74b1089a3601b027923d86424bc0bb3 100644 (file)
@@ -4,23 +4,7 @@
  * Pantelis Antoniou <panto@intracom.gr>
  * Intracom S.A.
  *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -288,7 +272,6 @@ static void max3100_serial_setbrg(void)
 {
 }
 
-#ifdef CONFIG_SERIAL_MULTI
 static struct serial_device max3100_serial_drv = {
        .name   = "max3100_serial",
        .start  = max3100_serial_init,
@@ -309,34 +292,3 @@ __weak struct serial_device *default_serial_console(void)
 {
        return &max3100_serial_drv;
 }
-#else
-int serial_init(void)
-{
-       return max3100_serial_init();
-}
-
-void serial_setbrg(void)
-{
-       max3100_serial_setbrg();
-}
-
-void serial_putc(const char c)
-{
-       max3100_serial_putc(c);
-}
-
-void serial_puts(const char *s)
-{
-       max3100_serial_puts(s);
-}
-
-int serial_getc(void)
-{
-       return max3100_serial_getc();
-}
-
-int serial_tstc(void)
-{
-       return max3100_serial_tstc();
-}
-#endif