Skip to content

Commit

Permalink
ARM: OMAP2+: Fix compillation error in mach-omap2/timer.c
Browse files Browse the repository at this point in the history
prom_add_property() has been renamed to of_add_property()
This patch fixes the following comilation error:

arch/arm/mach-omap2/timer.c: In function ‘omap_get_timer_dt’:
arch/arm/mach-omap2/timer.c:178:3: error: implicit declaration of function ‘prom_add_property’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-omap2/timer.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Peter Ujfalusi authored and Olof Johansson committed Dec 20, 2012
1 parent f438a83 commit 2727da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static struct device_node * __init omap_get_timer_dt(struct of_device_id *match,
continue;
}

prom_add_property(np, &device_disabled);
of_add_property(np, &device_disabled);
return np;
}

Expand Down

0 comments on commit 2727da8

Please sign in to comment.