Merge 9bd3443e34
("i2c: xiic: Simplify with dev_err_probe()") into android12-5.10-lts
Steps on the way to 5.10.227 Change-Id: I6fb758dbcca37ace6ef85f11bc1efdd712b01960 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
commit
ed3c358943
@ -838,11 +838,10 @@ static int xiic_i2c_probe(struct platform_device *pdev)
|
||||
mutex_init(&i2c->lock);
|
||||
|
||||
i2c->clk = devm_clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(i2c->clk)) {
|
||||
if (PTR_ERR(i2c->clk) != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "input clock not found.\n");
|
||||
return PTR_ERR(i2c->clk);
|
||||
}
|
||||
if (IS_ERR(i2c->clk))
|
||||
return dev_err_probe(&pdev->dev, PTR_ERR(i2c->clk),
|
||||
"input clock not found.\n");
|
||||
|
||||
ret = clk_prepare_enable(i2c->clk);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "Unable to enable clock.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user