Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258639
b: refs/heads/master
c: 581f84e
h: refs/heads/master
i:
  258637: 176cd01
  258635: 6d4a1f5
  258631: 8e2ddd0
  258623: 65bcdb3
v: v3
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed Jul 7, 2011
1 parent cb1c56c commit 263dc34
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 34 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2a08e3e46f594ad605c9b5f5fce6b9f36a9a3eb
refs/heads/master: 581f84e24b45ab871ae5f15f9290261c7226ffa9
1 change: 0 additions & 1 deletion trunk/arch/arm/plat-mxc/include/mach/iomux-v1.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
extern int mxc_gpio_mode(int gpio_mode);
extern int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count,
const char *label);
extern void mxc_gpio_release_multiple_pins(const int *pin_list, int count);

extern int __init imx_iomuxv1_init(void __iomem *base, int numports);

Expand Down
32 changes: 0 additions & 32 deletions trunk/arch/arm/plat-mxc/iomux-v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,45 +172,13 @@ static int imx_iomuxv1_setup_multiple(const int *list, unsigned count)
int mxc_gpio_setup_multiple_pins(const int *pin_list, unsigned count,
const char *label)
{
size_t i;
int ret;

for (i = 0; i < count; ++i) {
unsigned gpio = pin_list[i] & (GPIO_PIN_MASK | GPIO_PORT_MASK);

ret = gpio_request(gpio, label);
if (ret)
goto err_gpio_request;
}

ret = imx_iomuxv1_setup_multiple(pin_list, count);
if (ret)
goto err_setup;

return 0;

err_setup:
BUG_ON(i != count);

err_gpio_request:
mxc_gpio_release_multiple_pins(pin_list, i);

return ret;
}
EXPORT_SYMBOL(mxc_gpio_setup_multiple_pins);

void mxc_gpio_release_multiple_pins(const int *pin_list, int count)
{
size_t i;

for (i = 0; i < count; ++i) {
unsigned gpio = pin_list[i] & (GPIO_PIN_MASK | GPIO_PORT_MASK);

gpio_free(gpio);
}
}
EXPORT_SYMBOL(mxc_gpio_release_multiple_pins);

int __init imx_iomuxv1_init(void __iomem *base, int numports)
{
imx_iomuxv1_baseaddr = base;
Expand Down

0 comments on commit 263dc34

Please sign in to comment.