diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/can/mscan/mpc5xxx_can.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/mscan/mpc5xxx_can.c b/drivers/net/can/mscan/mpc5xxx_can.c index 06adf881ea24..524ef96dc24d 100644 --- a/drivers/net/can/mscan/mpc5xxx_can.c +++ b/drivers/net/can/mscan/mpc5xxx_can.c | |||
@@ -181,7 +181,7 @@ static u32 __devinit mpc512x_can_get_clock(struct platform_device *ofdev, | |||
181 | 181 | ||
182 | if (!clock_name || !strcmp(clock_name, "sys")) { | 182 | if (!clock_name || !strcmp(clock_name, "sys")) { |
183 | sys_clk = clk_get(&ofdev->dev, "sys_clk"); | 183 | sys_clk = clk_get(&ofdev->dev, "sys_clk"); |
184 | if (!sys_clk) { | 184 | if (IS_ERR(sys_clk)) { |
185 | dev_err(&ofdev->dev, "couldn't get sys_clk\n"); | 185 | dev_err(&ofdev->dev, "couldn't get sys_clk\n"); |
186 | goto exit_unmap; | 186 | goto exit_unmap; |
187 | } | 187 | } |
@@ -204,7 +204,7 @@ static u32 __devinit mpc512x_can_get_clock(struct platform_device *ofdev, | |||
204 | 204 | ||
205 | if (clocksrc < 0) { | 205 | if (clocksrc < 0) { |
206 | ref_clk = clk_get(&ofdev->dev, "ref_clk"); | 206 | ref_clk = clk_get(&ofdev->dev, "ref_clk"); |
207 | if (!ref_clk) { | 207 | if (IS_ERR(ref_clk)) { |
208 | dev_err(&ofdev->dev, "couldn't get ref_clk\n"); | 208 | dev_err(&ofdev->dev, "couldn't get ref_clk\n"); |
209 | goto exit_unmap; | 209 | goto exit_unmap; |
210 | } | 210 | } |