Message ID | 49B7FC0C.9080408@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Kevin Hilman |
Headers | show |
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index c8d9e96..523d1b0 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c @@ -725,8 +725,11 @@ int clk_notifier_unregister(struct clk *clk, struct notifier_block *nb) * XXX ugh, layering violation. there should be some * support in the notifier code for this. */ - if (!cn->notifier_head.head) + if (!cn->notifier_head.head) { + /* Free up my clock node too */ + list_del(&cn->node); kfree(cn); + } } else {