projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd76bab
)
at91_cf, minor fix
author
David Brownell
<
[email protected]
>
Sun, 6 May 2007 21:48:42 +0000
(14:48 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 7 May 2007 19:12:50 +0000
(12:12 -0700)
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: David Brownell <
[email protected]
>
Cc: Dominik Brodowski <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/pcmcia/at91_cf.c
patch
|
blob
|
history
diff --git
a/drivers/pcmcia/at91_cf.c
b/drivers/pcmcia/at91_cf.c
index 99baabc23599129179fc814a519ba35b089135be..948efc775a78355a44408f2c2e0f625b35efc625 100644
(file)
--- a/
drivers/pcmcia/at91_cf.c
+++ b/
drivers/pcmcia/at91_cf.c
@@
-360,7
+360,6
@@
static struct platform_driver at91_cf_driver = {
.name = (char *) driver_name,
.owner = THIS_MODULE,
},
- .probe = at91_cf_probe,
.remove = __exit_p(at91_cf_remove),
.suspend = at91_cf_suspend,
.resume = at91_cf_resume,
@@
-370,7
+369,7
@@
static struct platform_driver at91_cf_driver = {
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);