aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2012-12-15 17:51:17 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-01-24 19:24:25 -0500
commit8682b3c522c639f3a0de31c86bb91f2f9a6c76cb (patch)
tree5765958316a32602bb5e1557830ff5e3ab96d32e
parent3e347f08aab1bee4187fcda482ebde49090c4844 (diff)
sh-pfc: Remove platform device registration
The PFC platform device is now registered by arch code, remove the legacy registration mechanism. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Paul Mundt <lethal@linux-sh.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--drivers/sh/pfc/core.c12
-rw-r--r--include/linux/sh_pfc.h10
2 files changed, 0 insertions, 22 deletions
diff --git a/drivers/sh/pfc/core.c b/drivers/sh/pfc/core.c
index b2e121d927a0..9456c70a2da7 100644
--- a/drivers/sh/pfc/core.c
+++ b/drivers/sh/pfc/core.c
@@ -578,18 +578,6 @@ static struct platform_driver sh_pfc_driver = {
578 }, 578 },
579}; 579};
580 580
581static struct platform_device sh_pfc_device = {
582 .name = DRV_NAME,
583 .id = -1,
584};
585
586int __init register_sh_pfc(struct sh_pfc_platform_data *pdata)
587{
588 sh_pfc_device.dev.platform_data = pdata;
589
590 return platform_device_register(&sh_pfc_device);
591}
592
593static int __init sh_pfc_init(void) 581static int __init sh_pfc_init(void)
594{ 582{
595 return platform_driver_register(&sh_pfc_driver); 583 return platform_driver_register(&sh_pfc_driver);
diff --git a/include/linux/sh_pfc.h b/include/linux/sh_pfc.h
index f7f01b231b66..fa1fec084229 100644
--- a/include/linux/sh_pfc.h
+++ b/include/linux/sh_pfc.h
@@ -120,16 +120,6 @@ struct sh_pfc_platform_data {
120/* XXX compat for now */ 120/* XXX compat for now */
121#define pinmux_info sh_pfc_platform_data 121#define pinmux_info sh_pfc_platform_data
122 122
123/* drivers/sh/pfc/core.c */
124int register_sh_pfc(struct sh_pfc_platform_data *pfc);
125
126/* xxx */
127static inline int register_pinmux(struct pinmux_info *pip)
128{
129 struct sh_pfc_platform_data *pdata = pip;
130 return register_sh_pfc(pdata);
131}
132
133enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE }; 123enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE };
134 124
135/* helper macro for port */ 125/* helper macro for port */