diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-07-01 20:02:55 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-08 18:16:13 -0400 |
commit | b41511f713ccaef666e450fae8cb18909897fe4e (patch) | |
tree | 078c2a625964f7769a1fecc4fa5f6cf24dc2df68 /arch/arm/mach-exynos | |
parent | bad76991d7847b7877ae797cc79745d82ffd9120 (diff) |
mfd: Add irq domain support for max8997 interrupts
Add irq domain support for max8997 interrupts. The reverse mapping method
used is linear mapping since the sub-drivers of max8997 such as regulator
and charger drivers can use the max8997 irq_domain to get the linux irq
number for max8997 interrupts. All uses of irq_base in platform data and
max8997 driver private data are removed.
Reviwed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/mach-nuri.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-origen.c | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index 656f8fc9addd..acb58f5cee8d 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c | |||
@@ -1067,12 +1067,8 @@ static struct platform_device nuri_max8903_device = { | |||
1067 | static void __init nuri_power_init(void) | 1067 | static void __init nuri_power_init(void) |
1068 | { | 1068 | { |
1069 | int gpio; | 1069 | int gpio; |
1070 | int irq_base = IRQ_GPIO_END + 1; | ||
1071 | int ta_en = 0; | 1070 | int ta_en = 0; |
1072 | 1071 | ||
1073 | nuri_max8997_pdata.irq_base = irq_base; | ||
1074 | irq_base += MAX8997_IRQ_NR; | ||
1075 | |||
1076 | gpio = EXYNOS4_GPX0(7); | 1072 | gpio = EXYNOS4_GPX0(7); |
1077 | gpio_request(gpio, "AP_PMIC_IRQ"); | 1073 | gpio_request(gpio, "AP_PMIC_IRQ"); |
1078 | s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0xf)); | 1074 | s3c_gpio_cfgpin(gpio, S3C_GPIO_SFN(0xf)); |
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index f5572be9d7bf..3ce403d7cf1c 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c | |||
@@ -425,7 +425,6 @@ static struct max8997_platform_data __initdata origen_max8997_pdata = { | |||
425 | .buck1_gpiodvs = false, | 425 | .buck1_gpiodvs = false, |
426 | .buck2_gpiodvs = false, | 426 | .buck2_gpiodvs = false, |
427 | .buck5_gpiodvs = false, | 427 | .buck5_gpiodvs = false, |
428 | .irq_base = IRQ_GPIO_END + 1, | ||
429 | 428 | ||
430 | .ignore_gpiodvs_side_effect = true, | 429 | .ignore_gpiodvs_side_effect = true, |
431 | .buck125_default_idx = 0x0, | 430 | .buck125_default_idx = 0x0, |