Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e164ddee authored by Kevin Hilman's avatar Kevin Hilman Committed by Ben Dooks
Browse files

i2c-davinci: convert clock usage after clkdev conversion



DaVinci core code has converted to the new clkdev API so
clock name strings are not needed.  Instead, just the a
'struct device' pointer is needed.

Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 6847e154
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -523,7 +523,7 @@ static int davinci_i2c_probe(struct platform_device *pdev)
	dev->irq = irq->start;
	dev->irq = irq->start;
	platform_set_drvdata(pdev, dev);
	platform_set_drvdata(pdev, dev);


	dev->clk = clk_get(&pdev->dev, "I2CCLK");
	dev->clk = clk_get(&pdev->dev, NULL);
	if (IS_ERR(dev->clk)) {
	if (IS_ERR(dev->clk)) {
		r = -ENODEV;
		r = -ENODEV;
		goto err_free_mem;
		goto err_free_mem;