Skip to content

Commit

Permalink
sh-pfc: Remove platform device registration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 25, 2013
1 parent 3e347f0 commit 8682b3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions drivers/sh/pfc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
return platform_driver_register(&sh_pfc_driver);
Expand Down
10 changes: 0 additions & 10 deletions include/linux/sh_pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,6 @@ struct sh_pfc_platform_data {
/* XXX compat for now */
#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 };

/* helper macro for port */
Expand Down

0 comments on commit 8682b3c

Please sign in to comment.