Deleted Added
full compact
30c30
< __FBSDID("$FreeBSD: head/sys/arm/allwinner/a10_gpio.c 273799 2014-10-28 18:33:59Z loos $");
---
> __FBSDID("$FreeBSD: head/sys/arm/allwinner/a10_gpio.c 274670 2014-11-18 17:22:08Z loos $");
305,318d304
< /* Check for unwanted flags. */
< if ((flags & sc->sc_gpio_pins[i].gp_caps) != flags)
< return (EINVAL);
<
< /* Can't mix input/output together. */
< if ((flags & (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT)) ==
< (GPIO_PIN_INPUT|GPIO_PIN_OUTPUT))
< return (EINVAL);
<
< /* Can't mix pull-up/pull-down together. */
< if ((flags & (GPIO_PIN_PULLUP|GPIO_PIN_PULLDOWN)) ==
< (GPIO_PIN_PULLUP|GPIO_PIN_PULLDOWN))
< return (EINVAL);
<