diff options
author | d binderman <dcb314@hotmail.com> | 2010-03-18 20:12:22 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-04-07 04:00:36 -0400 |
commit | 6237cdac5dd26d5ba81acf5daa737c8645614410 (patch) | |
tree | 6acff535419e18d47199025424f6397105b261f4 /sound/aoa | |
parent | 469d62be9263b92f2c3329540cbb1c076111f4f3 (diff) |
powerpc/aoa: gpio-pmf.c: 3 * redundant code
Signed-off-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'sound/aoa')
-rw-r--r-- | sound/aoa/core/gpio-pmf.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/aoa/core/gpio-pmf.c b/sound/aoa/core/gpio-pmf.c index 6776d1c12b63..7e267c9379bc 100644 --- a/sound/aoa/core/gpio-pmf.c +++ b/sound/aoa/core/gpio-pmf.c | |||
@@ -116,12 +116,9 @@ static void pmf_gpio_exit(struct gpio_runtime *rt) | |||
116 | mutex_destroy(&rt->line_in_notify.mutex); | 116 | mutex_destroy(&rt->line_in_notify.mutex); |
117 | mutex_destroy(&rt->line_out_notify.mutex); | 117 | mutex_destroy(&rt->line_out_notify.mutex); |
118 | 118 | ||
119 | if (rt->headphone_notify.gpio_private) | 119 | kfree(rt->headphone_notify.gpio_private); |
120 | kfree(rt->headphone_notify.gpio_private); | 120 | kfree(rt->line_in_notify.gpio_private); |
121 | if (rt->line_in_notify.gpio_private) | 121 | kfree(rt->line_out_notify.gpio_private); |
122 | kfree(rt->line_in_notify.gpio_private); | ||
123 | if (rt->line_out_notify.gpio_private) | ||
124 | kfree(rt->line_out_notify.gpio_private); | ||
125 | } | 122 | } |
126 | 123 | ||
127 | static void pmf_handle_notify_irq(void *data) | 124 | static void pmf_handle_notify_irq(void *data) |