[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110325073054.GE7285@pengutronix.de>
Date: Fri, 25 Mar 2011 08:30:54 +0100
From: Sascha Hauer <s.hauer@...gutronix.de>
To: Dinh.Nguyen@...escale.com
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux@....linux.org.uk, u.kleine-koenig@...gutronix.de,
arnaud.patard@...-net.org, ra5478@...escale.com,
xiao-lizhang@...escale.com, festevam@...il.com
Subject: Re: [PATCHv6 4/4] ARM: mx51: Add support for low power suspend on
MX51
On Wed, Mar 23, 2011 at 04:27:56PM -0500, Dinh.Nguyen@...escale.com wrote:
> From: Dinh Nguyen <Dinh.Nguyen@...escale.com>
>
> Adds initial low power suspend functionality to MX51.
> Supports "mem" and "standby" modes.
>
> +
> +static int __init mx5_pm_init(void)
> +{
> + if (gpc_dvfs_clk == NULL)
> + gpc_dvfs_clk = clk_get(NULL, "gpc_dvfs");
> +
> + if (!IS_ERR(gpc_dvfs_clk)) {
> + if (cpu_is_mx51())
> + suspend_set_ops(&mx5_suspend_ops);
> + } else {
> + printk(KERN_ERR "Cannot enter SRPG suspend -no gpc_dvfs clock!\n");
> + return -EPERM;
This will print a warning on every non i.MX51 machine, not a good idea.
Please just bail out early on irrelevant machines.
Sascha
> + }
> +
> + return 0;
> +}
> +device_initcall(mx5_pm_init);
> --
> 1.6.0.4
>
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists