X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=post%2Fboard%2Flwmon5%2Fgdc.c;h=9405e7d9abf9ae19c1497d4a92026041545783d9;hb=d4db3b86a5e090e21db710bedbbe3e50d4c56428;hp=719194b5d930b555eeb23f1c5d8b616e8a695b6f;hpb=e67f46286440a53fb1d693152667ea3b1a6b3060;p=platform%2Fkernel%2Fu-boot.git diff --git a/post/board/lwmon5/gdc.c b/post/board/lwmon5/gdc.c index 719194b..9405e7d 100644 --- a/post/board/lwmon5/gdc.c +++ b/post/board/lwmon5/gdc.c @@ -3,23 +3,7 @@ * * Developed for DENX Software Engineering GmbH * - * 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 @@ -63,13 +47,12 @@ const static unsigned long otherpattern = 0x01234567; /* test write/read og a given LIME Register */ static int gdc_test_reg_one(uint value) { - int ret; uint read_value; /* write test pattern */ out_be32((void *)GDC_SCRATCH_REG, value); /* read other location (protect against data lines capacity) */ - ret = in_be32((void *)GDC_RAM_START); + in_be32((void *)GDC_RAM_START); /* verify test pattern */ read_value = in_be32((void *)GDC_SCRATCH_REG); if (read_value != value) {