From: Cristina Opriceana Date: Sun, 29 Mar 2015 13:14:39 +0000 (+0300) Subject: Staging: iio: Add error check on iio_register_device() X-Git-Tag: omap-for-v4.1/fixes-rc1~165^2~138^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72eb70209a0aac7651166d3f610ffb57b4c6e5f;p=pandora-kernel.git Staging: iio: Add error check on iio_register_device() This patch checks if an error occurred on probe and stops the device in order to avoid wasting power. Signed-off-by: Cristina Opriceana Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed