[ARM] omap: spi: arrange for omap_uwire to use connection ID
... which now means no driver requests the "armxor_ck" clock directly. Also, fix the error handling for clk_get(), ensuring that we propagate the error returned from clk_get(). Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
cc51c9d444
commit
b1ad379632
@@ -133,6 +133,7 @@ static struct omap_clk omap_clks[] = {
|
|||||||
CLK("i2c_omap.1", "fck", &i2c_fck, CK_16XX | CK_1510 | CK_310),
|
CLK("i2c_omap.1", "fck", &i2c_fck, CK_16XX | CK_1510 | CK_310),
|
||||||
CLK("i2c_omap.1", "ick", &i2c_ick, CK_16XX),
|
CLK("i2c_omap.1", "ick", &i2c_ick, CK_16XX),
|
||||||
CLK("i2c_omap.1", "ick", &dummy_ck, CK_1510 | CK_310),
|
CLK("i2c_omap.1", "ick", &dummy_ck, CK_1510 | CK_310),
|
||||||
|
CLK("omap_uwire", "fck", &armxor_ck.clk, CK_16XX | CK_1510 | CK_310),
|
||||||
CLK("omap-mcbsp.1", "ick", &dspper_ck, CK_16XX),
|
CLK("omap-mcbsp.1", "ick", &dspper_ck, CK_16XX),
|
||||||
CLK("omap-mcbsp.1", "ick", &dummy_ck, CK_1510 | CK_310),
|
CLK("omap-mcbsp.1", "ick", &dummy_ck, CK_1510 | CK_310),
|
||||||
CLK("omap-mcbsp.2", "ick", &armper_ck.clk, CK_16XX),
|
CLK("omap-mcbsp.2", "ick", &armper_ck.clk, CK_16XX),
|
||||||
|
@@ -506,11 +506,12 @@ static int __init uwire_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
dev_set_drvdata(&pdev->dev, uwire);
|
dev_set_drvdata(&pdev->dev, uwire);
|
||||||
|
|
||||||
uwire->ck = clk_get(&pdev->dev, "armxor_ck");
|
uwire->ck = clk_get(&pdev->dev, "fck");
|
||||||
if (!uwire->ck || IS_ERR(uwire->ck)) {
|
if (IS_ERR(uwire->ck)) {
|
||||||
dev_dbg(&pdev->dev, "no mpu_xor_clk ?\n");
|
status = PTR_ERR(uwire->ck);
|
||||||
|
dev_dbg(&pdev->dev, "no functional clock?\n");
|
||||||
spi_master_put(master);
|
spi_master_put(master);
|
||||||
return -ENODEV;
|
return status;
|
||||||
}
|
}
|
||||||
clk_enable(uwire->ck);
|
clk_enable(uwire->ck);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user