提交 02c83595 编写于 作者: D David Brownell 提交者: Linus Torvalds

at91_cf, minor fix

This is a minor correctness fix: since the at91_cf driver probe() routine
is in the init section, it should use platform_driver_probe() instead of
leaving that pointer around in the driver struct after init section
removal.
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 fd76bab2
...@@ -360,7 +360,6 @@ static struct platform_driver at91_cf_driver = { ...@@ -360,7 +360,6 @@ static struct platform_driver at91_cf_driver = {
.name = (char *) driver_name, .name = (char *) driver_name,
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = at91_cf_probe,
.remove = __exit_p(at91_cf_remove), .remove = __exit_p(at91_cf_remove),
.suspend = at91_cf_suspend, .suspend = at91_cf_suspend,
.resume = at91_cf_resume, .resume = at91_cf_resume,
...@@ -370,7 +369,7 @@ static struct platform_driver at91_cf_driver = { ...@@ -370,7 +369,7 @@ static struct platform_driver at91_cf_driver = {
static int __init at91_cf_init(void) static int __init at91_cf_init(void)
{ {
return platform_driver_register(&at91_cf_driver); return platform_driver_probe(&at91_cf_driver, at91_cf_probe);
} }
module_init(at91_cf_init); module_init(at91_cf_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册