ar71xx: fix compiler warnings in mdio-bitbang.c for 4.4
[openwrt/staging/lynxis.git] / target / linux / ar71xx / patches-4.4 / 901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch
index 68f86e0e09d2020476c7b2c94e460d481187b59f..a830346a31ef5b54f00ca3a490879981fb0d7b73 100644 (file)
@@ -25,8 +25,8 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
 @@ -156,7 +157,9 @@ static int mdiobb_read(struct mii_bus *b
  {
        struct mdiobb_ctrl *ctrl = bus->priv;
-       int ret, i;
-+      long flags;
+       int ret;
++      unsigned long flags;
  
 +      local_irq_save(flags);
        if (reg & MII_ADDR_C45) {
@@ -44,7 +44,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
  static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val)
  {
        struct mdiobb_ctrl *ctrl = bus->priv;
-+      long flags;
++      unsigned long flags;
  
 +      local_irq_save(flags);
        if (reg & MII_ADDR_C45) {