diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2007-11-16 21:01:19 -0700 | 
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2007-11-16 21:01:19 -0700 | 
| commit | efe33035acd5f7c13963a4d52e5aac1b68612ae4 (patch) | |
| tree | 37d6ccca1c82953ae4c41451cb3ec5fe53e2dc3c /common/cmd_ide.c | |
| parent | 4d4faae65e115e327425cd514c1a35146a85166b (diff) | |
| parent | 5947f6999aafa7c54c1390983d264a8463dfea8e (diff) | |
| download | olio-uboot-2014.01-efe33035acd5f7c13963a4d52e5aac1b68612ae4.tar.xz olio-uboot-2014.01-efe33035acd5f7c13963a4d52e5aac1b68612ae4.zip | |
Merge branch 'origin' into kconfig-for-1.3.1
Conflicts:
	drivers/Makefile
Diffstat (limited to 'common/cmd_ide.c')
| -rw-r--r-- | common/cmd_ide.c | 16 | 
1 files changed, 6 insertions, 10 deletions
| diff --git a/common/cmd_ide.c b/common/cmd_ide.c index bb064eaa0..2202009f5 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -54,10 +54,6 @@  #ifndef __PPC__  #include <asm/io.h> -#ifdef __MIPS__ -/* Macros depend on this variable */ -unsigned long mips_io_port_base = 0; -#endif  #endif  #ifdef CONFIG_IDE_8xx_DIRECT @@ -1136,9 +1132,9 @@ static void ide_ident (block_dev_desc_t *dev_desc)  	input_swap_data (device, iobuf, ATA_SECTORWORDS); -	ident_cpy (dev_desc->revision, iop->fw_rev, sizeof(dev_desc->revision)); -	ident_cpy (dev_desc->vendor, iop->model, sizeof(dev_desc->vendor)); -	ident_cpy (dev_desc->product, iop->serial_no, sizeof(dev_desc->product)); +	ident_cpy ((unsigned char*)dev_desc->revision, iop->fw_rev, sizeof(dev_desc->revision)); +	ident_cpy ((unsigned char*)dev_desc->vendor, iop->model, sizeof(dev_desc->vendor)); +	ident_cpy ((unsigned char*)dev_desc->product, iop->serial_no, sizeof(dev_desc->product));  #ifdef __LITTLE_ENDIAN  	/*  	 * firmware revision and model number have Big Endian Byte @@ -1953,9 +1949,9 @@ static void	atapi_inquiry(block_dev_desc_t * dev_desc)  		return;  	/* copy device ident strings */ -	ident_cpy(dev_desc->vendor,&iobuf[8],8); -	ident_cpy(dev_desc->product,&iobuf[16],16); -	ident_cpy(dev_desc->revision,&iobuf[32],5); +	ident_cpy((unsigned char*)dev_desc->vendor,&iobuf[8],8); +	ident_cpy((unsigned char*)dev_desc->product,&iobuf[16],16); +	ident_cpy((unsigned char*)dev_desc->revision,&iobuf[32],5);  	dev_desc->lun=0;  	dev_desc->lba=0; |