Loading arch/arm/common/locomo.c +7 −7 Original line number Diff line number Diff line Loading @@ -651,16 +651,16 @@ __locomo_probe(struct device *me, struct resource *mem, int irq) return ret; } static void __locomo_remove(struct locomo *lchip) static int locomo_remove_child(struct device *dev, void *data) { struct list_head *l, *n; list_for_each_safe(l, n, &lchip->dev->children) { struct device *d = list_to_dev(l); device_unregister(d); device_unregister(dev); return 0; } static void __locomo_remove(struct locomo *lchip) { device_for_each_child(lchip->dev, NULL, locomo_remove_child); if (lchip->irq != NO_IRQ) { set_irq_chained_handler(lchip->irq, NULL); set_irq_data(lchip->irq, NULL); Loading Loading
arch/arm/common/locomo.c +7 −7 Original line number Diff line number Diff line Loading @@ -651,16 +651,16 @@ __locomo_probe(struct device *me, struct resource *mem, int irq) return ret; } static void __locomo_remove(struct locomo *lchip) static int locomo_remove_child(struct device *dev, void *data) { struct list_head *l, *n; list_for_each_safe(l, n, &lchip->dev->children) { struct device *d = list_to_dev(l); device_unregister(d); device_unregister(dev); return 0; } static void __locomo_remove(struct locomo *lchip) { device_for_each_child(lchip->dev, NULL, locomo_remove_child); if (lchip->irq != NO_IRQ) { set_irq_chained_handler(lchip->irq, NULL); set_irq_data(lchip->irq, NULL); Loading