sunxi: Kconfig: Unify sunxi Kconfig code
[platform/kernel/u-boot.git] / board / w7o / fpga.c
index c3d3c80..a27e8ab 100644 (file)
@@ -4,28 +4,13 @@
  *  and
  * Bill Hunter, Wave 7 Optics, william.hunter@mediaone.net
  *
- * 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 <config.h>
 #include <common.h>
 #include "w7o.h"
 #include <asm/processor.h>
+#include <linux/compiler.h>
 #include "errors.h"
 
 static void
@@ -63,10 +48,10 @@ fpgaDownload(unsigned char *saddr, unsigned long size, unsigned short *daddr)
        unsigned long *source;  /* image source addr */
        unsigned short *dest;   /* destination FPGA addr */
        volatile unsigned short *ndest; /* temp dest FPGA addr */
-       volatile unsigned short val;    /* temp val */
        unsigned long cnfg = GPIO_XCV_CNFG;     /* FPGA CNFG */
        unsigned long eirq = GPIO_XCV_IRQ;
        int retval = -1;        /* Function return value */
+       __maybe_unused volatile unsigned short val;     /* temp val */
 
        /* Setup some basic values */
        length = (size / 4) + 1;        /* size in words, rounding UP