Skip to content

Commit

Permalink
mtd: sh_flctl: register sh_flctl using platform_driver_probe()
Browse files Browse the repository at this point in the history
As with orion_nand in commit f33dabb
("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>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 19, 2009
1 parent c0cbfd0 commit 894572a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mtd/nand/sh_flctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)
Expand Down

0 comments on commit 894572a

Please sign in to comment.