X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fmtd%2Fnand%2Fnand_ecc.c;h=8b548b204d68fc0ddd3079bd61b535e11de2d379;hb=c7c553f249f99ae282f1fa5c0e314aae0bce8a26;hp=52bc916afb7370b30763b776a86f10b8d31c5861;hpb=6ca803750e1e08fce26e508f1c35170bf9259bb4;p=oweals%2Fu-boot.git diff --git a/drivers/mtd/nand/nand_ecc.c b/drivers/mtd/nand/nand_ecc.c index 52bc916afb..8b548b204d 100644 --- a/drivers/mtd/nand/nand_ecc.c +++ b/drivers/mtd/nand/nand_ecc.c @@ -9,19 +9,7 @@ * * Copyright (C) 2006 Thomas Gleixner * - * This file 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 or (at your option) any - * later version. - * - * This file 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 file; 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+ * * As a special exception, if other files instantiate templates or use * macros or inline functions from these files, or you compile these @@ -37,8 +25,9 @@ #include -#include +#include #include +#include /* The PPC4xx NDFC uses Smart Media (SMC) bytes order */ #ifdef CONFIG_NAND_NDFC @@ -50,7 +39,7 @@ * only nand_correct_data() is needed */ -#ifndef CONFIG_NAND_SPL +#if !defined(CONFIG_NAND_SPL) || defined(CONFIG_SPL_NAND_SOFTECC) /* * Pre-calculated 256-way 1 byte column parity */