aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2012-12-15 17:51:00 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-01-24 19:24:23 -0500
commit49a8dd66c5bb224878cacc7eccb523e30ccaedc9 (patch)
tree2731c4dba51359a34a29941c99b444ecaf8f8617
parent5812e8d4934f60cf0b000a6e8203aefeb5a815f6 (diff)
ARM: shmobile: sh73a0: Register PFC platform device
Add arch code to register the PFC platform device instead of calling the driver directly. Platform device registration in the sh-pfc driver will be removed. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/mach-shmobile/pfc-sh73a0.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/pfc-sh73a0.c b/arch/arm/mach-shmobile/pfc-sh73a0.c
index b442f9d8c716..c83c582f203f 100644
--- a/arch/arm/mach-shmobile/pfc-sh73a0.c
+++ b/arch/arm/mach-shmobile/pfc-sh73a0.c
@@ -20,6 +20,7 @@
20 */ 20 */
21#include <linux/init.h> 21#include <linux/init.h>
22#include <linux/kernel.h> 22#include <linux/kernel.h>
23#include <linux/platform_device.h>
23#include <linux/sh_pfc.h> 24#include <linux/sh_pfc.h>
24#include <mach/sh73a0.h> 25#include <mach/sh73a0.h>
25#include <mach/irqs.h> 26#include <mach/irqs.h>
@@ -2797,7 +2798,15 @@ static struct pinmux_info sh73a0_pinmux_info = {
2797 .gpio_irq_size = ARRAY_SIZE(pinmux_irqs), 2798 .gpio_irq_size = ARRAY_SIZE(pinmux_irqs),
2798}; 2799};
2799 2800
2801static struct platform_device sh73a0_pfc_device = {
2802 .name = "sh-pfc",
2803 .id = -1,
2804 .dev = {
2805 .platform_data = &sh73a0_pinmux_info,
2806 },
2807};
2808
2800void sh73a0_pinmux_init(void) 2809void sh73a0_pinmux_init(void)
2801{ 2810{
2802 register_pinmux(&sh73a0_pinmux_info); 2811 platform_device_register(&sh73a0_pfc_device);
2803} 2812}