]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
watchdog: mpc8xxx_wdt: fix build
authorPeter Korsgaard <jacmet@sunsite.dk>
Wed, 30 Mar 2011 13:48:22 +0000 (15:48 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 7 Apr 2011 20:20:24 +0000 (20:20 +0000)
Since 1c48a5c93da6313 (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>
drivers/watchdog/mpc8xxx_wdt.c

index 6709d723e017a0965ac179ccd6513c127c152e51..528bceb220fd5783383d8575e99ff2099fdbdd95 100644 (file)
@@ -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;