]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/ahci.c
Merge git://www.denx.de/git/u-boot
[karo-tx-uboot.git] / drivers / ahci.c
index 8ceff00925fffbe54332da2b9c7b1fa6ab289598..3d82c625a353dfc36ec8bddeb6856cca5e9a5317 100644 (file)
@@ -253,13 +253,14 @@ static void ahci_print_info(struct ahci_probe_ent *probe_ent)
 
 static int ahci_init_one(pci_dev_t pdev)
 {
-       u32 iobase, vendor;
+       u32 iobase;
+       u16 vendor;
        int rc;
 
        memset((void *)ataid, 0, sizeof(hd_driveid_t *) * AHCI_MAX_PORTS);
 
-       probe_ent = malloc(sizeof(probe_ent));
-       memset(probe_ent, 0, sizeof(probe_ent));
+       probe_ent = malloc(sizeof(struct ahci_probe_ent));
+       memset(probe_ent, 0, sizeof(struct ahci_probe_ent));
        probe_ent->dev = pdev;
 
        pci_read_config_dword(pdev, AHCI_PCI_BAR, &iobase);