Commit 6237cdac authored by d binderman's avatar d binderman Committed by Benjamin Herrenschmidt

powerpc/aoa: gpio-pmf.c: 3 * redundant code

Signed-off-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 469d62be
......@@ -116,12 +116,9 @@ static void pmf_gpio_exit(struct gpio_runtime *rt)
mutex_destroy(&rt->line_in_notify.mutex);
mutex_destroy(&rt->line_out_notify.mutex);
if (rt->headphone_notify.gpio_private)
kfree(rt->headphone_notify.gpio_private);
if (rt->line_in_notify.gpio_private)
kfree(rt->line_in_notify.gpio_private);
if (rt->line_out_notify.gpio_private)
kfree(rt->line_out_notify.gpio_private);
kfree(rt->headphone_notify.gpio_private);
kfree(rt->line_in_notify.gpio_private);
kfree(rt->line_out_notify.gpio_private);
}
static void pmf_handle_notify_irq(void *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment