Skip to content

Commit

Permalink
watchdog: mpc8xxx_wdt: fix build
Browse files Browse the repository at this point in the history
Since 1c48a5c (dt: Eliminate of_platform_{,un}register_driver)
mpc8xxx_wdt no longer builds as it tries to refer to a 'match' variable
rather than ofdev->dev.of_match that it checks just before.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Peter Korsgaard authored and Wim Van Sebroeck committed Apr 7, 2011
1 parent 8b9686f commit d856b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/mpc8xxx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static int __devinit mpc8xxx_wdt_probe(struct platform_device *ofdev)

if (!ofdev->dev.of_match)
return -EINVAL;
wdt_type = match->data;
wdt_type = ofdev->dev.of_match->data;

if (!freq || freq == -1)
return -EINVAL;
Expand Down

0 comments on commit d856b41

Please sign in to comment.