diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/nand/ndfc.c | 13 | ||||
| -rw-r--r-- | drivers/net/phy/atheros.c | 2 | ||||
| -rw-r--r-- | drivers/usb/eth/asix.c | 2 | 
3 files changed, 1 insertions, 16 deletions
| diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 34688e9be..5510b13c0 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -104,7 +104,6 @@ static void ndfc_read_buf(struct mtd_info *mtdinfo, uint8_t *buf, int len)  		*p++ = in_be32((u32 *)(base + NDFC_DATA));  } -#ifndef CONFIG_NAND_SPL  /*   * Don't use these speedup functions in NAND boot image, since the image   * has to fit into 4kByte. @@ -148,8 +147,6 @@ static uint8_t ndfc_read_byte(struct mtd_info *mtd)  } -#endif /* #ifndef CONFIG_NAND_SPL */ -  void board_nand_select_device(struct nand_chip *nand, int chip)  {  	/* @@ -207,21 +204,11 @@ int board_nand_init(struct nand_chip *nand)  	nand->options |= NAND_BUSWIDTH_16;  #endif -#ifndef CONFIG_NAND_SPL  	nand->write_buf  = ndfc_write_buf;  	nand->verify_buf = ndfc_verify_buf;  	nand->read_byte = ndfc_read_byte;  	chip++; -#else -	/* -	 * Setup EBC (CS0 only right now) -	 */ -	mtebc(EBC0_CFG, CONFIG_SYS_NDFC_EBC0_CFG); - -	mtebc(PB0CR, CONFIG_SYS_EBC_PB0CR); -	mtebc(PB0AP, CONFIG_SYS_EBC_PB0AP); -#endif  	return 0;  } diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 5332e1a18..b80980d55 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -41,7 +41,7 @@ static int ar8035_config(struct phy_device *phydev)  static struct phy_driver AR8021_driver =  {  	.name = "AR8021",  	.uid = 0x4dd040, -	.mask = 0x4fffff, +	.mask = 0x4ffff0,  	.features = PHY_GBIT_FEATURES,  	.config = ar8021_config,  	.startup = genphy_startup, diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index 659533a8d..ce133f006 100644 --- a/drivers/usb/eth/asix.c +++ b/drivers/usb/eth/asix.c @@ -468,8 +468,6 @@ static int asix_send(struct eth_device *eth, void *packet, int length)  	memcpy(msg, &packet_len, sizeof(packet_len));  	memcpy(msg + sizeof(packet_len), (void *)packet, length); -	if (length & 1) -		length++;  	err = usb_bulk_msg(dev->pusb_dev,  				usb_sndbulkpipe(dev->pusb_dev, dev->ep_out), |