aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xilinx/ll_temac_main.c
diff options
context:
space:
mode:
authorManuel Schölling <manuel.schoelling@gmx.de>2014-06-22 13:24:54 +0200
committerDavid S. Miller <davem@davemloft.net>2014-06-22 17:14:56 -0700
commit9f8b93cb32e088d3377c86fabb666b884bac0f12 (patch)
tree11187e8abd048d1cfceec2f832ff0a30df7e4fd8 /drivers/net/ethernet/xilinx/ll_temac_main.c
parentnet: em_canid: remove useless statements from em_canid_change (diff)
downloadlinux-dev-9f8b93cb32e088d3377c86fabb666b884bac0f12.tar.xz
linux-dev-9f8b93cb32e088d3377c86fabb666b884bac0f12.zip
xilinx: Fix compiler warning
The time comparsion functions require arguments of type unsigned long instead of (signed) long. Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx/ll_temac_main.c')
-rw-r--r--drivers/net/ethernet/xilinx/ll_temac_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index 4ef818a7a6c6..8a6e5c2d6f95 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -72,7 +72,7 @@ void temac_iow(struct temac_local *lp, int offset, u32 value)
int temac_indirect_busywait(struct temac_local *lp)
{
- long end = jiffies + 2;
+ unsigned long end = jiffies + 2;
while (!(temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK)) {
if (time_before_eq(end, jiffies)) {