diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2011-02-24 15:51:33 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-24 15:51:33 -0500 |
commit | 69dbf857c80e9697621ecb0d4323385999449663 (patch) | |
tree | 7a547c4a6015148f36127fa2bf4e4fbfc86ba691 /arch/arm/mach-omap2/mailbox.c | |
parent | 0f9dfdd3d76d356250595cde200efe7c07dec0a1 (diff) |
OMAP: mailbox: build device using omap_device/omap_hwmod
Remove static platform_device and resource data within
omap mailbox driver; use the one defined in the hwmod
database along with omap_device framework for device
build and registration.
Add device latency functions to be used, so clock can be
enabled and sysconfig is configured.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mailbox.c')
-rw-r--r-- | arch/arm/mach-omap2/mailbox.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c index 29b9dc3917af..de352bdbcd0a 100644 --- a/arch/arm/mach-omap2/mailbox.c +++ b/arch/arm/mach-omap2/mailbox.c | |||
@@ -398,14 +398,14 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev) | |||
398 | else if (cpu_is_omap34xx()) { | 398 | else if (cpu_is_omap34xx()) { |
399 | list = omap3_mboxes; | 399 | list = omap3_mboxes; |
400 | 400 | ||
401 | list[0]->irq = platform_get_irq_byname(pdev, "dsp"); | 401 | list[0]->irq = platform_get_irq(pdev, 0); |
402 | } | 402 | } |
403 | #endif | 403 | #endif |
404 | #if defined(CONFIG_ARCH_OMAP2) | 404 | #if defined(CONFIG_ARCH_OMAP2) |
405 | else if (cpu_is_omap2430()) { | 405 | else if (cpu_is_omap2430()) { |
406 | list = omap2_mboxes; | 406 | list = omap2_mboxes; |
407 | 407 | ||
408 | list[0]->irq = platform_get_irq_byname(pdev, "dsp"); | 408 | list[0]->irq = platform_get_irq(pdev, 0); |
409 | } else if (cpu_is_omap2420()) { | 409 | } else if (cpu_is_omap2420()) { |
410 | list = omap2_mboxes; | 410 | list = omap2_mboxes; |
411 | 411 | ||
@@ -417,8 +417,7 @@ static int __devinit omap2_mbox_probe(struct platform_device *pdev) | |||
417 | else if (cpu_is_omap44xx()) { | 417 | else if (cpu_is_omap44xx()) { |
418 | list = omap4_mboxes; | 418 | list = omap4_mboxes; |
419 | 419 | ||
420 | list[0]->irq = list[1]->irq = | 420 | list[0]->irq = list[1]->irq = platform_get_irq(pdev, 0); |
421 | platform_get_irq_byname(pdev, "mbox"); | ||
422 | } | 421 | } |
423 | #endif | 422 | #endif |
424 | else { | 423 | else { |