sh-pfc: Remove platform device registration
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 15 Dec 2012 22:51:17 +0000 (23:51 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 25 Jan 2013 00:24:25 +0000 (09:24 +0900)
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>
drivers/sh/pfc/core.c
include/linux/sh_pfc.h

index b2e121d927a00727ca4c3434b900b6e5d20a3c0a..9456c70a2da7c15c9bf3c3290cf88a1bc6417d1c 100644 (file)
@@ -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);
index f7f01b231b667184c13ffa57f2b704d5cf9cb3d2..fa1fec084229e4878862a8635e162eb1000d7771 100644 (file)
@@ -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 */