X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=drivers%2Fblock%2Fata_piix.c;h=5cf91ade8d2cb343a42898306d951b9e4d913155;hb=019b57cc1d280c3768e2e8a7ff22e07a64c2f670;hp=dd411f12d67f9e1ba4c8dc90a0eb149947486e3f;hpb=5048a672d93e466cd7b47f5126e6d6381702d0e2;p=karo-tx-uboot.git diff --git a/drivers/block/ata_piix.c b/drivers/block/ata_piix.c index dd411f12d6..5cf91ade8d 100644 --- a/drivers/block/ata_piix.c +++ b/drivers/block/ata_piix.c @@ -3,20 +3,7 @@ * Author: Mushtaq Khan * * - * 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+ * * with the reference to ata_piix driver in kernel 2.4.32 */ @@ -34,9 +21,7 @@ #include #include #include - -extern block_dev_desc_t sata_dev_desc[CONFIG_SYS_SATA_MAX_DEVICE]; -extern int sata_curr_device; +#include #define DEBUG_SATA 0 /* For debug prints set DEBUG_SATA to 1 */ @@ -408,6 +393,7 @@ void sata_identify(int num, int dev) /* assuming HD */ sata_dev_desc[devno].type = DEV_TYPE_HARDDISK; sata_dev_desc[devno].blksz = ATA_BLOCKSIZE; + sata_dev_desc[devno].log2blksz = LOG2(sata_dev_desc[devno].blksz); sata_dev_desc[devno].lun = 0; /* just to fill something in... */ }