atheros: fix kernel warning about usage of reset gpio
[openwrt.git] / target / linux / atheros / patches-3.10 / 100-board.patch
index 5fb3e00..96be80d 100644 (file)
 +      /* Cold reset does not work on the AR2315/6, use the GPIO reset bits a workaround.
 +       * give it some time to attempt a gpio based hardware reset
 +       * (atheros reference design workaround) */
-+      gpio_direction_output(AR2315_RESET_GPIO, 0);
++      gpio_request_one(AR2315_RESET_GPIO, GPIOF_OUT_INIT_LOW, "Reset");
 +      mdelay(100);
 +
 +      /* Some boards (e.g. Senao EOC-2610) don't implement the reset logic