Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326683
b: refs/heads/master
c: 13acc29
h: refs/heads/master
i:
  326681: 5476efc
  326679: cc3eaa5
v: v3
  • Loading branch information
Chander Kashyap authored and Kukjin Kim committed Sep 21, 2012
1 parent b57cd99 commit b2f0aa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 377acfbbcfd4abecdf837350e2c2906cc0a0e001
refs/heads/master: 13acc291191281e2980e56dbe3a3d80ce677c9a8
8 changes: 4 additions & 4 deletions trunk/arch/arm/plat-samsung/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void clk_disable(struct clk *clk)

unsigned long clk_get_rate(struct clk *clk)
{
if (IS_ERR(clk))
if (IS_ERR_OR_NULL(clk))
return 0;

if (clk->rate != 0)
Expand All @@ -136,7 +136,7 @@ unsigned long clk_get_rate(struct clk *clk)

long clk_round_rate(struct clk *clk, unsigned long rate)
{
if (!IS_ERR(clk) && clk->ops && clk->ops->round_rate)
if (!IS_ERR_OR_NULL(clk) && clk->ops && clk->ops->round_rate)
return (clk->ops->round_rate)(clk, rate);

return rate;
Expand All @@ -146,7 +146,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
{
int ret;

if (IS_ERR(clk))
if (IS_ERR_OR_NULL(clk))
return -EINVAL;

/* We do not default just do a clk->rate = rate as
Expand Down Expand Up @@ -175,7 +175,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
{
int ret = 0;

if (IS_ERR(clk))
if (IS_ERR_OR_NULL(clk) || IS_ERR_OR_NULL(parent))
return -EINVAL;

spin_lock(&clocks_lock);
Expand Down

0 comments on commit b2f0aa6

Please sign in to comment.