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>
This commit is contained in:
@@ -194,7 +194,6 @@ static int mcp_sa11x0_probe(struct platform_device *dev)
|
||||
mcp->owner = THIS_MODULE;
|
||||
mcp->ops = &mcp_sa11x0;
|
||||
mcp->sclk_rate = data->sclk_rate;
|
||||
mcp->gpio_base = data->gpio_base;
|
||||
|
||||
m = priv(mcp);
|
||||
m->mccr0 = data->mccr0 | 0x7f7f;
|
||||
@@ -229,7 +228,7 @@ static int mcp_sa11x0_probe(struct platform_device *dev)
|
||||
mcp->rw_timeout = (64 * 3 * 1000000 + mcp->sclk_rate - 1) /
|
||||
mcp->sclk_rate;
|
||||
|
||||
ret = mcp_host_add(mcp);
|
||||
ret = mcp_host_add(mcp, data->codec_pdata);
|
||||
if (ret == 0)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user