Message ID | 1355501979-1157-19-git-send-email-lee.jones@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/drivers/gpio/gpio-ab8500.c b/drivers/gpio/gpio-ab8500.c index b4f631a..833d4c2 100644 --- a/drivers/gpio/gpio-ab8500.c +++ b/drivers/gpio/gpio-ab8500.c @@ -673,6 +673,8 @@ int ab8540_gpio_config_vinsel(struct device *dev, goto out; } + pos = (gpio - AB8500_PIN_GPIO(51)) << 1; + ret = abx500_mask_and_set_register_interruptible(dev, AB8500_MISC, AB8540_GPIO_VINSEL_REG, AB8540_GPIO_VINSEL_MASK << pos, val << pos);