You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Simon Horman
parent
3e347f08aa
commit
8682b3c522
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user