mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
update i2c
This commit is contained in:
@@ -587,7 +587,7 @@ static int rk2818_i2c_probe(struct platform_device *pdev)
|
||||
|
||||
i2c->dev = &pdev->dev;
|
||||
|
||||
i2c->clk = clk_get(&pdev->dev, DRV_NAME);
|
||||
i2c->clk = clk_get(&pdev->dev, "i2c");
|
||||
if (IS_ERR(i2c->clk)) {
|
||||
dev_err(&pdev->dev, "cannot get clock\n");
|
||||
ret = -ENOENT;
|
||||
|
||||
Reference in New Issue
Block a user