diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-06-02 03:09:18 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-06-02 03:50:38 -0400 |
commit | c2cdf6aba0dfcfb54be646ab630c1bccd180e890 (patch) | |
tree | 97bfd319f0ebe514ef821a080b74860fb9dbaa24 /drivers/block | |
parent | 79905ad50bcf025deb81382413719ed600734941 (diff) |
powerpc/macio: Fix probing of macio devices by using the right of match table
Grant patches added an of mach table to struct device_driver. However,
while he changed the macio device code to use that, he left the match
table pointer in struct macio_driver and didn't update drivers to use
the "new" one, thus breaking the probing.
This completes the change by moving all drivers to setup the "new"
one, removing all traces of the old one, and while at it (since it
changes the exact same locations), I also remove two other duplicates
from struct driver which are the name and owner fields.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/swim3.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index 52f2d11bc7b9..ed6fb91123ab 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c | |||
@@ -1159,8 +1159,10 @@ static struct of_device_id swim3_match[] = | |||
1159 | 1159 | ||
1160 | static struct macio_driver swim3_driver = | 1160 | static struct macio_driver swim3_driver = |
1161 | { | 1161 | { |
1162 | .name = "swim3", | 1162 | .driver = { |
1163 | .match_table = swim3_match, | 1163 | .name = "swim3", |
1164 | .of_match_table = swim3_match, | ||
1165 | }, | ||
1164 | .probe = swim3_attach, | 1166 | .probe = swim3_attach, |
1165 | #if 0 | 1167 | #if 0 |
1166 | .suspend = swim3_suspend, | 1168 | .suspend = swim3_suspend, |