apm-emulation: apm_mutex breaks ACK; remove it
[firefly-linux-kernel-4.4.55.git] / 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;