Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253317
b: refs/heads/master
c: 3b3eca3
h: refs/heads/master
i:
  253315: c55fa37
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jun 7, 2011
1 parent b0d38b6 commit 4320b33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 99592ba4a80edb84938e7e0cf71fdecff1ce67fd
refs/heads/master: 3b3eca3116861113ccc0e1ca3b98cb43598f46a7
16 changes: 8 additions & 8 deletions trunk/drivers/base/power/clock_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static int pm_runtime_clk_notify(struct notifier_block *nb,
{
struct pm_clk_notifier_block *clknb;
struct device *dev = data;
char *con_id;
char **con_id;
int error;

dev_dbg(dev, "%s() %ld\n", __func__, action);
Expand All @@ -309,8 +309,8 @@ static int pm_runtime_clk_notify(struct notifier_block *nb,

dev->pwr_domain = clknb->pwr_domain;
if (clknb->con_ids[0]) {
for (con_id = clknb->con_ids[0]; *con_id; con_id++)
pm_runtime_clk_add(dev, con_id);
for (con_id = clknb->con_ids; *con_id; con_id++)
pm_runtime_clk_add(dev, *con_id);
} else {
pm_runtime_clk_add(dev, NULL);
}
Expand Down Expand Up @@ -380,7 +380,7 @@ static int pm_runtime_clk_notify(struct notifier_block *nb,
{
struct pm_clk_notifier_block *clknb;
struct device *dev = data;
char *con_id;
char **con_id;

dev_dbg(dev, "%s() %ld\n", __func__, action);

Expand All @@ -389,16 +389,16 @@ static int pm_runtime_clk_notify(struct notifier_block *nb,
switch (action) {
case BUS_NOTIFY_ADD_DEVICE:
if (clknb->con_ids[0]) {
for (con_id = clknb->con_ids[0]; *con_id; con_id++)
enable_clock(dev, con_id);
for (con_id = clknb->con_ids; *con_id; con_id++)
enable_clock(dev, *con_id);
} else {
enable_clock(dev, NULL);
}
break;
case BUS_NOTIFY_DEL_DEVICE:
if (clknb->con_ids[0]) {
for (con_id = clknb->con_ids[0]; *con_id; con_id++)
disable_clock(dev, con_id);
for (con_id = clknb->con_ids; *con_id; con_id++)
disable_clock(dev, *con_id);
} else {
disable_clock(dev, NULL);
}
Expand Down

0 comments on commit 4320b33

Please sign in to comment.