mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 01:10:39 -05:00
watchdog: mpc8xxx_wdt: fix build
Since 1c48a5c93d (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 <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
8b9686ff4d
commit
d856b41846
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue