diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-06 04:59:34 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-24 07:09:12 -0500 |
commit | 8bf2f8c5ccd4119b9e4bba6c2db5c93c237a84cb (patch) | |
tree | a4f22da0ddfa95c354f5c90af86ca6b1322dcf2f | |
parent | 8826478e1125db9f05f902c5c7105ada164a8358 (diff) |
ARM: shmobile: r8a7740: Declare SCIF register base and IRQ as resources
Passing the register base address and IRQ through platform data is
deprecated. Use resources instead.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | arch/arm/mach-shmobile/setup-r8a7740.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 8778b57ed7d9..81a4366b95f8 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c | |||
@@ -207,16 +207,21 @@ static struct platform_device irqpin3_device = { | |||
207 | #define R8A7740_SCIF(scif_type, index, baseaddr, irq) \ | 207 | #define R8A7740_SCIF(scif_type, index, baseaddr, irq) \ |
208 | static struct plat_sci_port scif##index##_platform_data = { \ | 208 | static struct plat_sci_port scif##index##_platform_data = { \ |
209 | .type = scif_type, \ | 209 | .type = scif_type, \ |
210 | .mapbase = baseaddr, \ | ||
211 | .flags = UPF_BOOT_AUTOCONF, \ | 210 | .flags = UPF_BOOT_AUTOCONF, \ |
212 | .irqs = SCIx_IRQ_MUXED(irq), \ | ||
213 | .scbrr_algo_id = SCBRR_ALGO_4, \ | 211 | .scbrr_algo_id = SCBRR_ALGO_4, \ |
214 | .scscr = SCSCR_RE | SCSCR_TE, \ | 212 | .scscr = SCSCR_RE | SCSCR_TE, \ |
215 | }; \ | 213 | }; \ |
216 | \ | 214 | \ |
215 | static struct resource scif##index##_resources[] = { \ | ||
216 | DEFINE_RES_MEM(baseaddr, 0x100), \ | ||
217 | DEFINE_RES_IRQ(irq), \ | ||
218 | }; \ | ||
219 | \ | ||
217 | static struct platform_device scif##index##_device = { \ | 220 | static struct platform_device scif##index##_device = { \ |
218 | .name = "sh-sci", \ | 221 | .name = "sh-sci", \ |
219 | .id = index, \ | 222 | .id = index, \ |
223 | .resource = scif##index##_resources, \ | ||
224 | .num_resources = ARRAY_SIZE(scif##index##_resources), \ | ||
220 | .dev = { \ | 225 | .dev = { \ |
221 | .platform_data = &scif##index##_platform_data, \ | 226 | .platform_data = &scif##index##_platform_data, \ |
222 | }, \ | 227 | }, \ |