diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-21 13:03:00 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-03 12:38:13 -0500 |
commit | a6aecae29affdd1a84198afe45ef9e13ecbf9826 (patch) | |
tree | fc04096bc31ba7d27b5ab785a225ce46cb262d48 /drivers/mfd/mcp-sa11x0.c | |
parent | 2796e397373a15ece69267ed1bbb9f61435a3ac7 (diff) |
MFD: mcp-sa11x0: use _noirq resume methods
The genirq code requires early access to interrupt controllers. In
order to allow this, we need to resume the MCP via the _noirq methods
instead of the standard methods.
Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mfd/mcp-sa11x0.c')
-rw-r--r-- | drivers/mfd/mcp-sa11x0.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mfd/mcp-sa11x0.c b/drivers/mfd/mcp-sa11x0.c index 46167f676129..420710b19f2d 100644 --- a/drivers/mfd/mcp-sa11x0.c +++ b/drivers/mfd/mcp-sa11x0.c | |||
@@ -289,7 +289,14 @@ static int mcp_sa11x0_resume(struct device *dev) | |||
289 | #endif | 289 | #endif |
290 | 290 | ||
291 | static const struct dev_pm_ops mcp_sa11x0_pm_ops = { | 291 | static const struct dev_pm_ops mcp_sa11x0_pm_ops = { |
292 | SET_SYSTEM_SLEEP_PM_OPS(mcp_sa11x0_suspend, mcp_sa11x0_resume) | 292 | #ifdef CONFIG_PM_SLEEP |
293 | .suspend = mcp_sa11x0_suspend, | ||
294 | .freeze = mcp_sa11x0_suspend, | ||
295 | .poweroff = mcp_sa11x0_suspend, | ||
296 | .resume_noirq = mcp_sa11x0_resume, | ||
297 | .thaw_noirq = mcp_sa11x0_resume, | ||
298 | .restore_noirq = mcp_sa11x0_resume, | ||
299 | #endif | ||
293 | }; | 300 | }; |
294 | 301 | ||
295 | static struct platform_driver mcp_sa11x0_driver = { | 302 | static struct platform_driver mcp_sa11x0_driver = { |