diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-28 18:14:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-28 18:14:45 -0400 |
commit | bc5bbc4541c4098603edcf9b0b960a71741e79de (patch) | |
tree | 45a07588b6c610493366746f28ea848ca02bae12 /drivers/mfd | |
parent | 32836e082b25f17e7b09f11335b34b039c7568d2 (diff) | |
parent | fe67dfc874da094bbbfbb73e74924d414b96105b (diff) |
Merge branch 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson
* 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson:
mach-ux500: configure board for the TPS61052 regulator v2
mach-ux500: provide ab8500 init vector
mach-ux500: board support for AB8500 GPIO driver
gpio: driver for 42 AB8500 GPIO pins
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab8500-core.c | 14 | ||||
-rw-r--r-- | drivers/mfd/ab8500-i2c.c | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 62e33e2258d..67d01c93828 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c | |||
@@ -362,6 +362,15 @@ static void ab8500_irq_remove(struct ab8500 *ab8500) | |||
362 | } | 362 | } |
363 | } | 363 | } |
364 | 364 | ||
365 | static struct resource ab8500_gpio_resources[] = { | ||
366 | { | ||
367 | .name = "GPIO_INT6", | ||
368 | .start = AB8500_INT_GPIO6R, | ||
369 | .end = AB8500_INT_GPIO41F, | ||
370 | .flags = IORESOURCE_IRQ, | ||
371 | } | ||
372 | }; | ||
373 | |||
365 | static struct resource ab8500_gpadc_resources[] = { | 374 | static struct resource ab8500_gpadc_resources[] = { |
366 | { | 375 | { |
367 | .name = "HW_CONV_END", | 376 | .name = "HW_CONV_END", |
@@ -596,6 +605,11 @@ static struct mfd_cell ab8500_devs[] = { | |||
596 | .name = "ab8500-regulator", | 605 | .name = "ab8500-regulator", |
597 | }, | 606 | }, |
598 | { | 607 | { |
608 | .name = "ab8500-gpio", | ||
609 | .num_resources = ARRAY_SIZE(ab8500_gpio_resources), | ||
610 | .resources = ab8500_gpio_resources, | ||
611 | }, | ||
612 | { | ||
599 | .name = "ab8500-gpadc", | 613 | .name = "ab8500-gpadc", |
600 | .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), | 614 | .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), |
601 | .resources = ab8500_gpadc_resources, | 615 | .resources = ab8500_gpadc_resources, |
diff --git a/drivers/mfd/ab8500-i2c.c b/drivers/mfd/ab8500-i2c.c index 6820327adf4..821e6b86afd 100644 --- a/drivers/mfd/ab8500-i2c.c +++ b/drivers/mfd/ab8500-i2c.c | |||
@@ -97,7 +97,7 @@ static void __exit ab8500_i2c_exit(void) | |||
97 | { | 97 | { |
98 | platform_driver_unregister(&ab8500_i2c_driver); | 98 | platform_driver_unregister(&ab8500_i2c_driver); |
99 | } | 99 | } |
100 | subsys_initcall(ab8500_i2c_init); | 100 | arch_initcall(ab8500_i2c_init); |
101 | module_exit(ab8500_i2c_exit); | 101 | module_exit(ab8500_i2c_exit); |
102 | 102 | ||
103 | MODULE_AUTHOR("Mattias WALLIN <mattias.wallin@stericsson.com"); | 103 | MODULE_AUTHOR("Mattias WALLIN <mattias.wallin@stericsson.com"); |