]> git.karo-electronics.de Git - linux-beck.git/commit
staging: iio_simple_dummy: fix init function
authorVladimirs Ambrosovs <rodriguez.twister@gmail.com>
Sat, 30 May 2015 08:20:15 +0000 (11:20 +0300)
committerJonathan Cameron <jic23@kernel.org>
Mon, 1 Jun 2015 10:20:19 +0000 (11:20 +0100)
commitb3f6af36e52e1e61cf7571c77dba0e905c38297a
treed3a1638a5482da0b0a614acd5dea61cd9b97bed4
parentff7d4f5981a8a139ead70adef3c1d0ed574bca01
staging: iio_simple_dummy: fix init function

This patch fixes the init function for the iio_simple_dummy driver.
The main issues were absence of kfree for the allocated array, and no
devices being removed in case the probe function fails, running in a loop.

Signed-off-by: Vladimirs Ambrosovs <rodriguez.twister@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/iio_simple_dummy.c