Commit 8682b3c5 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman

sh-pfc: Remove platform device registration

The PFC platform device is now registered by arch code, remove the
legacy registration mechanism.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarPaul Mundt <lethal@linux-sh.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 3e347f08
...@@ -578,18 +578,6 @@ static struct platform_driver sh_pfc_driver = { ...@@ -578,18 +578,6 @@ static struct platform_driver sh_pfc_driver = {
}, },
}; };
static struct platform_device sh_pfc_device = {
.name = DRV_NAME,
.id = -1,
};
int __init register_sh_pfc(struct sh_pfc_platform_data *pdata)
{
sh_pfc_device.dev.platform_data = pdata;
return platform_device_register(&sh_pfc_device);
}
static int __init sh_pfc_init(void) static int __init sh_pfc_init(void)
{ {
return platform_driver_register(&sh_pfc_driver); return platform_driver_register(&sh_pfc_driver);
......
...@@ -120,16 +120,6 @@ struct sh_pfc_platform_data { ...@@ -120,16 +120,6 @@ struct sh_pfc_platform_data {
/* XXX compat for now */ /* XXX compat for now */
#define pinmux_info sh_pfc_platform_data #define pinmux_info sh_pfc_platform_data
/* drivers/sh/pfc/core.c */
int register_sh_pfc(struct sh_pfc_platform_data *pfc);
/* xxx */
static inline int register_pinmux(struct pinmux_info *pip)
{
struct sh_pfc_platform_data *pdata = pip;
return register_sh_pfc(pdata);
}
enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE }; enum { GPIO_CFG_DRYRUN, GPIO_CFG_REQ, GPIO_CFG_FREE };
/* helper macro for port */ /* helper macro for port */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment