aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1/masters')
-rw-r--r--drivers/w1/masters/mxc_w1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
index 1cc61a700fa8..12c1ab844d80 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -117,9 +117,9 @@ static int __devinit mxc_w1_probe(struct platform_device *pdev)
117 if (!mdev) 117 if (!mdev)
118 return -ENOMEM; 118 return -ENOMEM;
119 119
120 mdev->clk = clk_get(&pdev->dev, "owire"); 120 mdev->clk = clk_get(&pdev->dev, NULL);
121 if (!mdev->clk) { 121 if (IS_ERR(mdev->clk)) {
122 err = -ENODEV; 122 err = PTR_ERR(mdev->clk);
123 goto failed_clk; 123 goto failed_clk;
124 } 124 }
125 125