OMAP2/3/4 clock: omap2_clk_prepare_for_reboot() is OMAP2xxx-only
omap2_clk_prepare_for_reboot() is only applicable to OMAP2xxx chips, so rename it to omap2xxx_clk_prepare_for_reboot() and only call it when running on OMAP2xxx chips. Remove the old stub in the OMAP3 clock code. Signed-off-by: Paul Walmsley <paul@pwsan.com>
This commit is contained in:
@ -29,6 +29,7 @@
|
||||
#include <plat/control.h>
|
||||
|
||||
#include "clock.h"
|
||||
#include "clock2xxx.h"
|
||||
#include "cm.h"
|
||||
#include "prm.h"
|
||||
#include "prm-regbits-24xx.h"
|
||||
@ -133,11 +134,12 @@ EXPORT_SYMBOL(omap_prcm_get_reset_sources);
|
||||
void omap_prcm_arch_reset(char mode)
|
||||
{
|
||||
s16 prcm_offs;
|
||||
omap2_clk_prepare_for_reboot();
|
||||
|
||||
if (cpu_is_omap24xx())
|
||||
if (cpu_is_omap24xx()) {
|
||||
omap2xxx_clk_prepare_for_reboot();
|
||||
|
||||
prcm_offs = WKUP_MOD;
|
||||
else if (cpu_is_omap34xx()) {
|
||||
} else if (cpu_is_omap34xx()) {
|
||||
u32 l;
|
||||
|
||||
prcm_offs = OMAP3430_GR_MOD;
|
||||
|
Reference in New Issue
Block a user