Skip to content

Commit

Permalink
xilinx: Fix compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manuel Schölling authored and David S. Miller committed Jun 23, 2014
1 parent 2b74e2c commit 9f8b93c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xilinx/ll_temac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* Wait till MDIO interface is ready to accept a new transaction.*/
int axienet_mdio_wait_until_ready(struct axienet_local *lp)
{
long end = jiffies + 2;
unsigned long end = jiffies + 2;
while (!(axienet_ior(lp, XAE_MDIO_MCR_OFFSET) &
XAE_MDIO_MCR_READY_MASK)) {
if (time_before_eq(end, jiffies)) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xilinx/xilinx_emaclite.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)

static int xemaclite_mdio_wait(struct net_local *lp)
{
long end = jiffies + 2;
unsigned long end = jiffies + 2;

/* wait for the MDIO interface to not be busy or timeout
after some time.
Expand Down

0 comments on commit 9f8b93c

Please sign in to comment.