]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/serial/opencores_yanu.c
karo: tx6: factor out PMIC initialization
[karo-tx-uboot.git] / drivers / serial / opencores_yanu.c
index 49bccf3a6cdaf56b3b4f688de6e24ac92682aca1..8de2eca2ac72c1ef32b6f2eb26c286fa2710fb47 100644 (file)
@@ -1,23 +1,7 @@
 /*
  * Copyright 2010, Renato Andreola <renato.andreola@imagos.it>
  *
- * 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>
@@ -161,14 +145,6 @@ static void oc_serial_putc(char c)
        writel((unsigned char)c, &uart->data);
 }
 
-static void oc_serial_puts(const char *s)
-{
-       while (*s != 0) {
-               serial_putc (*s++);
-       }
-}
-
-
 static int oc_serial_tstc(void)
 {
        unsigned status ;
@@ -195,7 +171,7 @@ static struct serial_device oc_serial_drv = {
        .stop   = NULL,
        .setbrg = oc_serial_setbrg,
        .putc   = oc_serial_putc,
-       .puts   = oc_serial_puts,
+       .puts   = default_serial_puts,
        .getc   = oc_serial_getc,
        .tstc   = oc_serial_tstc,
 };