diff options
Diffstat (limited to 'drivers/macintosh')
-rw-r--r-- | drivers/macintosh/macio_asic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c index 48a5f0406865..e3ba1d8001a3 100644 --- a/drivers/macintosh/macio_asic.c +++ b/drivers/macintosh/macio_asic.c | |||
@@ -40,8 +40,7 @@ static struct macio_chip *macio_on_hold; | |||
40 | static int macio_bus_match(struct device *dev, struct device_driver *drv) | 40 | static int macio_bus_match(struct device *dev, struct device_driver *drv) |
41 | { | 41 | { |
42 | struct macio_dev * macio_dev = to_macio_device(dev); | 42 | struct macio_dev * macio_dev = to_macio_device(dev); |
43 | struct macio_driver * macio_drv = to_macio_driver(drv); | 43 | const struct of_device_id * matches = drv->of_match_table; |
44 | const struct of_device_id * matches = macio_drv->match_table; | ||
45 | 44 | ||
46 | if (!matches) | 45 | if (!matches) |
47 | return 0; | 46 | return 0; |
@@ -84,7 +83,7 @@ static int macio_device_probe(struct device *dev) | |||
84 | 83 | ||
85 | macio_dev_get(macio_dev); | 84 | macio_dev_get(macio_dev); |
86 | 85 | ||
87 | match = of_match_device(drv->match_table, &macio_dev->ofdev); | 86 | match = of_match_device(drv->driver.of_match_table, &macio_dev->ofdev); |
88 | if (match) | 87 | if (match) |
89 | error = drv->probe(macio_dev, match); | 88 | error = drv->probe(macio_dev, match); |
90 | if (error) | 89 | if (error) |