]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/i2c/ppc4xx_i2c.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / drivers / i2c / ppc4xx_i2c.c
index 9b86187a798082957fed8a928f86ec1b3bfb6d22..52929ebc4e660f5deef9c07b929e67d340e4eedf 100644 (file)
@@ -7,30 +7,14 @@
  * (C) Copyright 2001
  * Bill Hunter,  Wave 7 Optics, williamhunter@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 <common.h>
-#include <ppc4xx.h>
-#include <4xx_i2c.h>
+#include <asm/ppc4xx.h>
+#include <asm/ppc4xx-i2c.h>
 #include <i2c.h>
-#include <asm-ppc/io.h>
+#include <asm/io.h>
 
 #ifdef CONFIG_HARD_I2C
 
@@ -396,10 +380,7 @@ static int ppc4xx_i2c_transfer(uchar chip, uint addr, int alen, uchar *buffer,
 #endif
        if ((ret = i2c_transfer(read, chip << 1, &xaddr[4 - alen], alen,
                                buffer, len)) != 0) {
-               if (gd->have_console) {
-                       printf("I2C %s: failed %d\n",
-                              read ? "read" : "write", ret);
-               }
+               printf("I2C %s: failed %d\n", read ? "read" : "write", ret);
 
                return 1;
        }