sh: sh7269: Register PFC platform device
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 15 Dec 2012 22:51:07 +0000 (23:51 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 00:24:24 +0000 (09:24 +0900)
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>
arch/sh/Kconfig
arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c

index 0626044bd866f8feffc3eb94c839bc0a4305297e..b934d7d00c7b7dcfe70a2382e2756b8053200d71 100644 (file)
@@ -305,6 +305,7 @@ config CPU_SUBTYPE_SH7269
        select CPU_HAS_FPU
        select SYS_SUPPORTS_CMT
        select SYS_SUPPORTS_MTU2
+       select PINCTRL
 
 config CPU_SUBTYPE_MXG
        bool "Support MX-G processor"
index 1289fd922c724e4d8b59d55c151673386dad244a..525da4cc83c34f3a430abfc483adeed3ead60766 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/gpio.h>
+#include <cpu/pfc.h>
 #include <cpu/sh7269.h>
 
 enum {
@@ -2834,6 +2835,6 @@ static struct pinmux_info sh7269_pinmux_info = {
 
 static int __init plat_pinmux_setup(void)
 {
-       return register_pinmux(&sh7269_pinmux_info);
+       return sh_pfc_register_info(NULL, NULL, 0, &sh7269_pinmux_info);
 }
 arch_initcall(plat_pinmux_setup);