Skip to content

Commit

Permalink
i2c: i2c-imx: Adapt the clock name to the new clock framework
Browse files Browse the repository at this point in the history
With the new i.mx clock framework the i2c clock is registered as:

clk_register_clkdev(clk[i2c1_ipg_gate], NULL, "imx-i2c.0")

So we do not need to pass "i2c_clk" string and can use NULL instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>

[wsa: rebased on top of the devm-conversion]

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Fabio Estevam authored and Wolfram Sang committed Jul 9, 2012
1 parent a3f24c0 commit 1f09c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
}

/* Get I2C clock */
i2c_imx->clk = devm_clk_get(&pdev->dev, "i2c_clk");
i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(i2c_imx->clk)) {
dev_err(&pdev->dev, "can't get I2C clock\n");
return PTR_ERR(i2c_imx->clk);
Expand Down

0 comments on commit 1f09c67

Please sign in to comment.