Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10052
b: refs/heads/master
c: d185663
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Oct 21, 2005
1 parent 12ac6ae commit 2325abb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 7fe8785e4198ad6b5dfd4a76c44c97e9b4463534
refs/heads/master: d18566376055046fca0b51ad536f1778ef34966a
15 changes: 8 additions & 7 deletions trunk/arch/arm/mach-integrator/impd1.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void impd1_setvco(struct clk *clk, struct icst525_vco vco)
}
writel(0, impd1->base + IMPD1_LOCK);

#if DEBUG
#ifdef DEBUG
vco.v = val & 0x1ff;
vco.r = (val >> 9) & 0x7f;
vco.s = (val >> 16) & 7;
Expand Down Expand Up @@ -427,17 +427,18 @@ static int impd1_probe(struct lm_device *dev)
return ret;
}

static int impd1_remove_one(struct device *dev, void *data)
{
device_unregister(dev);
return 0;
}

static void impd1_remove(struct lm_device *dev)
{
struct impd1_module *impd1 = lm_get_drvdata(dev);
struct list_head *l, *n;
int i;

list_for_each_safe(l, n, &dev->dev.children) {
struct device *d = list_to_dev(l);

device_unregister(d);
}
device_for_each_child(&dev->dev, NULL, impd1_remove_one);

for (i = 0; i < ARRAY_SIZE(impd1->vcos); i++)
clk_unregister(&impd1->vcos[i]);
Expand Down

0 comments on commit 2325abb

Please sign in to comment.