aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/mcp-sa11x0.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-20 17:13:52 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-18 18:15:30 -0500
commitabe06082d07fcb0673cb93338c1d6f037fdc375b (patch)
tree1ea446f1a77a30f3cb06e19f1af6f2a4ddfb6b6b /drivers/mfd/mcp-sa11x0.c
parenta6aecae29affdd1a84198afe45ef9e13ecbf9826 (diff)
MFD: mcp/ucb1x00: separate ucb1x00 driver data from the MCP data
Patch taken from 5dd7bf59e0 (ARM: sa11x0: Implement autoloading of codec and codec pdata for mcp bus.) by Jochen Friedrich <jochen@scram.de>. This adds just the codec data part of the patch. 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/mcp-sa11x0.c b/drivers/mfd/mcp-sa11x0.c
index 420710b19f2d..960ebc790389 100644
--- a/drivers/mfd/mcp-sa11x0.c
+++ b/drivers/mfd/mcp-sa11x0.c
@@ -194,7 +194,6 @@ static int mcp_sa11x0_probe(struct platform_device *dev)
194 mcp->owner = THIS_MODULE; 194 mcp->owner = THIS_MODULE;
195 mcp->ops = &mcp_sa11x0; 195 mcp->ops = &mcp_sa11x0;
196 mcp->sclk_rate = data->sclk_rate; 196 mcp->sclk_rate = data->sclk_rate;
197 mcp->gpio_base = data->gpio_base;
198 197
199 m = priv(mcp); 198 m = priv(mcp);
200 m->mccr0 = data->mccr0 | 0x7f7f; 199 m->mccr0 = data->mccr0 | 0x7f7f;
@@ -229,7 +228,7 @@ static int mcp_sa11x0_probe(struct platform_device *dev)
229 mcp->rw_timeout = (64 * 3 * 1000000 + mcp->sclk_rate - 1) / 228 mcp->rw_timeout = (64 * 3 * 1000000 + mcp->sclk_rate - 1) /
230 mcp->sclk_rate; 229 mcp->sclk_rate;
231 230
232 ret = mcp_host_add(mcp); 231 ret = mcp_host_add(mcp, data->codec_pdata);
233 if (ret == 0) 232 if (ret == 0)
234 return 0; 233 return 0;
235 234