[BUGFIX][PATCH] gpiolib: add missing initialisation of bgc->dir

From: Lothar WaÃmann
Date: Fri Jul 01 2011 - 08:10:09 EST



bgpio_init() does not initialise the shadow variable for the GPIO_GDIR
register. Thus the first 'set_direction' call will clear the whole
GPIO_GDIR register of the affected GPIO bank.

Signed-off-by: Lothar WaÃmann <LW@xxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/