diff options
| -rw-r--r-- | drivers/watchdog/mpc8xxx_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index 6709d723e017..528bceb220fd 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c | |||
| @@ -195,7 +195,7 @@ static int __devinit mpc8xxx_wdt_probe(struct platform_device *ofdev) | |||
| 195 | 195 | ||
| 196 | if (!ofdev->dev.of_match) | 196 | if (!ofdev->dev.of_match) |
| 197 | return -EINVAL; | 197 | return -EINVAL; |
| 198 | wdt_type = match->data; | 198 | wdt_type = ofdev->dev.of_match->data; |
| 199 | 199 | ||
| 200 | if (!freq || freq == -1) | 200 | if (!freq || freq == -1) |
| 201 | return -EINVAL; | 201 | return -EINVAL; |
