diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-03-07 19:59:36 (GMT) |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-25 15:03:41 (GMT) |
commit | 60178b6329259457013d0e39cbee22aec0230dfb (patch) | |
tree | 79b35d50105be3bd992f15af38fa5307b56f2480 | |
parent | c943740ccd7ccfc7e92c80d194d0a8a80ab7b55c (diff) | |
download | linux-60178b6329259457013d0e39cbee22aec0230dfb.tar.xz |
w1 i.MX: prepare/unprepare clock
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/w1/masters/mxc_w1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index a3b6a74..1cc61a7 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b/drivers/w1/masters/mxc_w1.c @@ -138,7 +138,7 @@ static int __devinit mxc_w1_probe(struct platform_device *pdev) goto failed_ioremap; } - clk_enable(mdev->clk); + clk_prepare_enable(mdev->clk); __raw_writeb(mdev->clkdiv, mdev->regs + MXC_W1_TIME_DIVIDER); mdev->bus_master.data = mdev; @@ -178,7 +178,7 @@ static int __devexit mxc_w1_remove(struct platform_device *pdev) iounmap(mdev->regs); release_mem_region(res->start, resource_size(res)); - clk_disable(mdev->clk); + clk_disable_unprepare(mdev->clk); clk_put(mdev->clk); platform_set_drvdata(pdev, NULL); |