Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 110666dc authored by Shawn Guo's avatar Shawn Guo
Browse files

ARM: imx6: do not call imx6q_suspend_init() with !CONFIG_SUSPEND



When CONFIG_SUSPEND is not enabled, we should reasonably skip the call
to imx6q_suspend_init().

Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
parent afc51f46
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -516,10 +516,12 @@ static void __init imx6_pm_common_init(const struct imx6_pm_socdata

	WARN_ON(!ccm_base);

	if (IS_ENABLED(CONFIG_SUSPEND)) {
		ret = imx6q_suspend_init(socdata);
		if (ret)
			pr_warn("%s: No DDR LPM support with suspend %d!\n",
				__func__, ret);
	}

	/*
	 * This is for SW workaround step #1 of ERR007265, see comments