forked from luck/tmp_suning_uos_patched
d0f9f16788
Calling platform-specific code unconditionally blows up when running
an ARCH_MULTIPLATFORM kernel on a different platform. Don't do it.
Reported-by: Paolo Pisati <p.pisati@gmail.com>
Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: stable@vger.kernel.org # v4.8+
Fixes: a30eceb7a5
("ARM: tango: add Suspend-to-RAM support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
21 lines
501 B
C
21 lines
501 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/hardware/cache-l2x0.h>
|
|
#include "smc.h"
|
|
#include "pm.h"
|
|
|
|
static void tango_l2c_write(unsigned long val, unsigned int reg)
|
|
{
|
|
if (reg == L2X0_CTRL)
|
|
tango_set_l2_control(val);
|
|
}
|
|
|
|
static const char *const tango_dt_compat[] = { "sigma,tango4", NULL };
|
|
|
|
DT_MACHINE_START(TANGO_DT, "Sigma Tango DT")
|
|
.dt_compat = tango_dt_compat,
|
|
.l2c_aux_mask = ~0,
|
|
.l2c_write_sec = tango_l2c_write,
|
|
.init_late = tango_pm_init,
|
|
MACHINE_END
|