[PATCH] ARM: Fix sa1111.c build error caused by klist changes
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
2a5a68b840
commit
522c37b9d3
1 changed files with 7 additions and 6 deletions
|
@ -721,16 +721,17 @@ __sa1111_probe(struct device *me, struct resource *mem, int irq)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int sa1111_remove_one(struct device *dev, void *data)
|
||||||
|
{
|
||||||
|
device_unregister(dev);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static void __sa1111_remove(struct sa1111 *sachip)
|
static void __sa1111_remove(struct sa1111 *sachip)
|
||||||
{
|
{
|
||||||
struct list_head *l, *n;
|
|
||||||
void __iomem *irqbase = sachip->base + SA1111_INTC;
|
void __iomem *irqbase = sachip->base + SA1111_INTC;
|
||||||
|
|
||||||
list_for_each_safe(l, n, &sachip->dev->children) {
|
device_for_each_child(sachip->dev, NULL, sa1111_remove_one);
|
||||||
struct device *d = list_to_dev(l);
|
|
||||||
|
|
||||||
device_unregister(d);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* disable all IRQs */
|
/* disable all IRQs */
|
||||||
sa1111_writel(0, irqbase + SA1111_INTEN0);
|
sa1111_writel(0, irqbase + SA1111_INTEN0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue