hwmon: fix freeing of gpio_data and irq
commit560a64a2b501add585b494b2b9cd9f68c0636b50
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 22 Sep 2009 00:04:48 +0000 (21 17:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:49 +0000 (22 07:17 -0700)
tree76ff9e60110a388e551f17b2071405eeea5f1c71
parent905ffdc35e50844ab45bbc59d5302238844f8526
hwmon: fix freeing of gpio_data and irq

If already requested, gpio_data and irq should be freed in the case of an
error.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/sht15.c