summaryrefslogtreecommitdiff
path: root/drivers/net/pcnet.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2013-11-08 11:18:44 +0000
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-11-09 17:21:01 +0100
commita95400411b0938b1ef6d87090f4b22026c56e55b (patch)
tree67a44ea8cc2cd0af743a414b31cd638636207092 /drivers/net/pcnet.c
parent6011dabd0ae0c01991e4ccd85a15bb2225b7e8bd (diff)
downloadu-boot-imx-a95400411b0938b1ef6d87090f4b22026c56e55b.zip
u-boot-imx-a95400411b0938b1ef6d87090f4b22026c56e55b.tar.gz
u-boot-imx-a95400411b0938b1ef6d87090f4b22026c56e55b.tar.bz2
pcnet: s/le16_to_cpu/cpu_to_le16/ in pcnet_send
This should cause no change to the generated code, but is semantically correct. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'drivers/net/pcnet.c')
-rw-r--r--drivers/net/pcnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index a30a0bc..843a6fc 100644
--- a/drivers/net/pcnet.c
+++ b/drivers/net/pcnet.c
@@ -427,10 +427,10 @@ static int pcnet_send(struct eth_device *dev, void *packet, int pkt_len)
* set the status with the "ownership" bits last.
*/
status = 0x8300;
- entry->length = le16_to_cpu(-pkt_len);
+ entry->length = cpu_to_le16(-pkt_len);
entry->misc = 0x00000000;
entry->base = PCI_TO_MEM_LE(dev, packet);
- entry->status = le16_to_cpu(status);
+ entry->status = cpu_to_le16(status);
/* Trigger an immediate send poll. */
pcnet_write_csr(dev, 0, 0x0008);