aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap4panda.c
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2012-03-02 10:20:01 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2012-03-22 08:02:51 -0400
commit9d4a4199e7029b4f1e8daa10b6839839a9fb89a7 (patch)
tree51549f9c8611754de79b0a265cea2bb257942a64 /arch/arm/mach-omap2/board-omap4panda.c
parentbdd61bc667401dc8054b69dddb0cf32ca2aab57b (diff)
ARM: OMAP2+: board-omap4-*: Do not use anymore TWL6030_IRQ_BASE in board files
With the introduction of dynamically allocated IRQ in the twl6030 driver, the board files can no longer rely of static IRQ defines like before. Retrieve the value dynamically allocated from the mmc -> twl6030 init callback. Note: The Panda board does not seems to use the card detect IRQ. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap4panda.c')
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 28fc271f7031..297f30bc842b 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -206,7 +206,7 @@ struct wl12xx_platform_data omap_panda_wlan_data __initdata = {
206 206
207static int omap4_twl6030_hsmmc_late_init(struct device *dev) 207static int omap4_twl6030_hsmmc_late_init(struct device *dev)
208{ 208{
209 int ret = 0; 209 int irq = 0;
210 struct platform_device *pdev = container_of(dev, 210 struct platform_device *pdev = container_of(dev,
211 struct platform_device, dev); 211 struct platform_device, dev);
212 struct omap_mmc_platform_data *pdata = dev->platform_data; 212 struct omap_mmc_platform_data *pdata = dev->platform_data;
@@ -217,14 +217,15 @@ static int omap4_twl6030_hsmmc_late_init(struct device *dev)
217 } 217 }
218 /* Setting MMC1 Card detect Irq */ 218 /* Setting MMC1 Card detect Irq */
219 if (pdev->id == 0) { 219 if (pdev->id == 0) {
220 ret = twl6030_mmc_card_detect_config(); 220 irq = twl6030_mmc_card_detect_config();
221 if (ret) 221 if (irq < 0) {
222 dev_err(dev, "%s: Error card detect config(%d)\n", 222 dev_err(dev, "%s: Error card detect config(%d)\n",
223 __func__, ret); 223 __func__, irq);
224 else 224 return irq;
225 pdata->slots[0].card_detect = twl6030_mmc_card_detect; 225 }
226 pdata->slots[0].card_detect = twl6030_mmc_card_detect;
226 } 227 }
227 return ret; 228 return 0;
228} 229}
229 230
230static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev) 231static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev)