mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
mtd: sh_flctl: register sh_flctl using platform_driver_probe()
As with orion_nand in commit f33dabbe79
("register orion_nand using platform_driver_probe()"), avoid .init.text
problems by using platform_device_probe(). This isn't going to be
hotplugged anyway.
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
c0cbfd0e81
commit
894572a363
1 changed files with 1 additions and 2 deletions
|
@ -857,7 +857,6 @@ static int __exit flctl_remove(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
static struct platform_driver flctl_driver = {
|
||||
.probe = flctl_probe,
|
||||
.remove = flctl_remove,
|
||||
.driver = {
|
||||
.name = "sh_flctl",
|
||||
|
@ -867,7 +866,7 @@ static struct platform_driver flctl_driver = {
|
|||
|
||||
static int __init flctl_nand_init(void)
|
||||
{
|
||||
return platform_driver_register(&flctl_driver);
|
||||
return platform_driver_probe(&flctl_driver, flctl_probe);
|
||||
}
|
||||
|
||||
static void __exit flctl_nand_cleanup(void)
|
||||
|
|
Loading…
Reference in a new issue