diff options
| author | Stefan Roese <sr@denx.de> | 2007-08-15 21:06:27 +0200 | 
|---|---|---|
| committer | Stefan Roese <sr@denx.de> | 2007-08-15 21:06:27 +0200 | 
| commit | b706d63559aeec352bc72dd86d7d5423c15f6a60 (patch) | |
| tree | fdeda4d61970fef239d9d66ecd851fa46cfe5ec0 /drivers/ahci.c | |
| parent | c8603cfbd4573379a6076c9c208545ba2bbf019a (diff) | |
| parent | 594e79838ce5078a90d0c27abb2b2d61d5f8e8a7 (diff) | |
| download | olio-uboot-2014.01-b706d63559aeec352bc72dd86d7d5423c15f6a60.tar.xz olio-uboot-2014.01-b706d63559aeec352bc72dd86d7d5423c15f6a60.zip | |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'drivers/ahci.c')
| -rw-r--r-- | drivers/ahci.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/drivers/ahci.c b/drivers/ahci.c index 8ceff0092..3d82c625a 100644 --- a/drivers/ahci.c +++ b/drivers/ahci.c @@ -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); |