Skip to content
Commit b3f6af36 authored by Vladimirs Ambrosovs's avatar Vladimirs Ambrosovs Committed by Jonathan Cameron
Browse files

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: default avatarVladimirs Ambrosovs <rodriguez.twister@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent ff7d4f59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment