]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/funkwerk/vovpn-gw/vovpn-gw.c
Coding Style cleanup: replace leading SPACEs by TABs
[karo-tx-uboot.git] / board / funkwerk / vovpn-gw / vovpn-gw.c
index 8c4abdd370668dd9cb50fcc85e4b7032fbb58418..c2aad6eb05f6860d81887cc9e559ee380cd77932 100644 (file)
@@ -4,20 +4,7 @@
  *
  * Support for the Elmeg VoVPN Gateway Module
  *
- * 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>
@@ -25,6 +12,7 @@
 #include <mpc8260.h>
 #include <asm/m8260_pci.h>
 #include <miiphy.h>
+#include <linux/compiler.h>
 
 #include "m88e6060.h"
 
@@ -198,7 +186,7 @@ void reset_phy (void)
        iop->pdat |= 0x00080000;
        for (i=0; i<100; i++) {
                udelay(20000);
-               if (bb_miiphy_read("FCC1 ETHERNET", CONFIG_SYS_PHY_ADDR,2,&val ) == 0) {
+               if (bb_miiphy_read("FCC1", CONFIG_SYS_PHY_ADDR,2,&val ) == 0) {
                        break;
                }
        }
@@ -263,7 +251,7 @@ int board_early_init_f (void)
 int misc_init_r (void)
 {
        volatile ioport_t *iop;
-       unsigned char temp;
+       __maybe_unused unsigned char temp;
 #if 0
        /* DUMP UPMA RAM */
        volatile immap_t *immap;
@@ -282,9 +270,9 @@ int misc_init_r (void)
        for (i = 0; i < 64; i++) {
                c = *dummy;
                printf( "UPMA[%02d]: 0x%08lx,0x%08lx: 0x%08lx\n",i,
-                       memctl->memc_mamr,
-                       memctl->memc_mar,
-                       memctl->memc_mdr );
+                       memctl->memc_mamr,
+                       memctl->memc_mar,
+                       memctl->memc_mdr );
        }
        memctl->memc_mamr = 0x00044440;
 #endif
@@ -306,7 +294,7 @@ int misc_init_r (void)
 
 #if defined(CONFIG_HAVE_OWN_RESET)
 int
-do_reset (void *cmdtp, int flag, int argc, char *argv[])
+do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        volatile ioport_t *iop;