提交 9f8b93cb 编写于 作者: M Manuel Schölling 提交者: David S. Miller

xilinx: Fix compiler warning

The time comparsion functions require arguments of type unsigned long
instead of (signed) long.
Signed-off-by: NManuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2b74e2ca
...@@ -72,7 +72,7 @@ void temac_iow(struct temac_local *lp, int offset, u32 value) ...@@ -72,7 +72,7 @@ void temac_iow(struct temac_local *lp, int offset, u32 value)
int temac_indirect_busywait(struct temac_local *lp) 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)) { while (!(temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK)) {
if (time_before_eq(end, jiffies)) { if (time_before_eq(end, jiffies)) {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
/* Wait till MDIO interface is ready to accept a new transaction.*/ /* Wait till MDIO interface is ready to accept a new transaction.*/
int axienet_mdio_wait_until_ready(struct axienet_local *lp) 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) & while (!(axienet_ior(lp, XAE_MDIO_MCR_OFFSET) &
XAE_MDIO_MCR_READY_MASK)) { XAE_MDIO_MCR_READY_MASK)) {
if (time_before_eq(end, jiffies)) { if (time_before_eq(end, jiffies)) {
......
...@@ -695,7 +695,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id) ...@@ -695,7 +695,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
static int xemaclite_mdio_wait(struct net_local *lp) 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 /* wait for the MDIO interface to not be busy or timeout
after some time. after some time.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册