diff options
author | Paul Walmsley <paul@pwsan.com> | 2012-06-21 23:40:38 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-06-21 23:40:38 -0400 |
commit | 96b1b29d37b0ca3ecd424a1fe301406cf525fc04 (patch) | |
tree | 92a1667b46d203e69f5cd008c85048be44e7e542 /arch/arm/mach-omap2/devices.c | |
parent | 2acd089471d93373e051c6b1f9f9e0d9e51a76bc (diff) |
ARM: OMAP2+: HDQ1W: use omap_device
Convert the old-style device registration code for HDQ1W to use
omap_device. This will allow the driver to be converted to use PM
runtime and to take advantage of the OMAP IP block management
infrastructure (hwmod, PM, etc.).
A side benefit of this conversion is that it also makes the HDQ device
available on OMAP2420. The previous code only enabled it on 2430 and
3430.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: NeilBrown <neilb@suse.de>
Tested-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 7b4b9327e543..8cab358603ac 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -672,43 +672,6 @@ void __init omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data) | |||
672 | 672 | ||
673 | #endif | 673 | #endif |
674 | 674 | ||
675 | /*-------------------------------------------------------------------------*/ | ||
676 | |||
677 | #if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) | ||
678 | #define OMAP_HDQ_BASE 0x480B2000 | ||
679 | static struct resource omap_hdq_resources[] = { | ||
680 | { | ||
681 | .start = OMAP_HDQ_BASE, | ||
682 | .end = OMAP_HDQ_BASE + 0x1C, | ||
683 | .flags = IORESOURCE_MEM, | ||
684 | }, | ||
685 | { | ||
686 | .start = INT_24XX_HDQ_IRQ, | ||
687 | .flags = IORESOURCE_IRQ, | ||
688 | }, | ||
689 | }; | ||
690 | static struct platform_device omap_hdq_dev = { | ||
691 | .name = "omap_hdq", | ||
692 | .id = 0, | ||
693 | .dev = { | ||
694 | .platform_data = NULL, | ||
695 | }, | ||
696 | .num_resources = ARRAY_SIZE(omap_hdq_resources), | ||
697 | .resource = omap_hdq_resources, | ||
698 | }; | ||
699 | static inline void omap_hdq_init(void) | ||
700 | { | ||
701 | if (cpu_is_omap2420()) | ||
702 | return; | ||
703 | |||
704 | platform_device_register(&omap_hdq_dev); | ||
705 | } | ||
706 | #else | ||
707 | static inline void omap_hdq_init(void) {} | ||
708 | #endif | ||
709 | |||
710 | /*---------------------------------------------------------------------------*/ | ||
711 | |||
712 | #if defined(CONFIG_VIDEO_OMAP2_VOUT) || \ | 675 | #if defined(CONFIG_VIDEO_OMAP2_VOUT) || \ |
713 | defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE) | 676 | defined(CONFIG_VIDEO_OMAP2_VOUT_MODULE) |
714 | #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) | 677 | #if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE) |
@@ -753,7 +716,6 @@ static int __init omap2_init_devices(void) | |||
753 | omap_init_mcspi(); | 716 | omap_init_mcspi(); |
754 | } | 717 | } |
755 | omap_init_pmu(); | 718 | omap_init_pmu(); |
756 | omap_hdq_init(); | ||
757 | omap_init_sti(); | 719 | omap_init_sti(); |
758 | omap_init_sham(); | 720 | omap_init_sham(); |
759 | omap_init_aes(); | 721 | omap_init_aes(); |