]> git.sur5r.net Git - u-boot/blobdiff - board/ti/am3517crane/am3517crane.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[u-boot] / board / ti / am3517crane / am3517crane.c
index cd5683d9be6895b7ef40ee232ad67a40d552ae93..5eb97ff3780ccfc44c6ed4a948cda3af9c05e130 100644 (file)
@@ -7,19 +7,7 @@
  *
  * Copyright (C) 2011 Mistral Solutions Pvt Ltd
  *
- * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -75,10 +63,9 @@ void set_muxconf_regs(void)
        MUX_AM3517CRANE();
 }
 
-#ifdef CONFIG_GENERIC_MMC
+#if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
 int board_mmc_init(bd_t *bis)
 {
-       omap_mmc_init(0);
-       return 0;
+       return omap_mmc_init(0, 0, 0, -1, -1);
 }
 #endif