X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fstandalone%2Fsmc91111_eeprom.c;h=38fadede1e2e12894788dd3f5cfeb5cc55906757;hb=a187559e3d586891c917279044c5386d1b2adc6e;hp=9145763e30ce3319e47573d00c6df42e7ce518a2;hpb=ed44387f406ca0e695609270a1282e699111a945;p=platform%2Fkernel%2Fu-boot.git diff --git a/examples/standalone/smc91111_eeprom.c b/examples/standalone/smc91111_eeprom.c index 9145763..38faded 100644 --- a/examples/standalone/smc91111_eeprom.c +++ b/examples/standalone/smc91111_eeprom.c @@ -2,27 +2,11 @@ * (C) Copyright 2004 * Robin Getz rgetz@blacfin.uclinux.org * - * 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+ * * Heavily borrowed from the following peoples GPL'ed software: * - Wolfgang Denk, DENX Software Engineering, wd@denx.de - * Das U-boot + * Das U-Boot * - Ladislav Michl ladis@linux-mips.org * A rejected patch on the U-Boot mailing list */ @@ -48,14 +32,13 @@ void print_MAC (struct eth_device *dev); int read_eeprom_reg (struct eth_device *dev, int reg); void print_macaddr (struct eth_device *dev); -int smc91111_eeprom (int argc, char *argv[]) +int smc91111_eeprom (int argc, char * const argv[]) { int c, i, j, done, line, reg, value, start, what; char input[50]; - struct eth_device dev = { - .iobase = CONFIG_SMC91111_BASE - }; + struct eth_device dev; + dev.iobase = CONFIG_SMC91111_BASE; /* Print the ABI version */ app_startup (argv);