From: Naveen Krishna Ch Date: Fri, 25 Apr 2014 10:14:00 +0000 (+0100) Subject: iio: exynos_adc: use indio_dev->dev structure to handle child nodes X-Git-Tag: omap-for-v3.16/fixes-against-rc1~217^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d821a1747a0abbb7a179af10188ad7ad9b35b72;p=pandora-kernel.git iio: exynos_adc: use indio_dev->dev structure to handle child nodes Using pdev->dev with device_for_each_child() would iterate over all of the children of the platform device and delete them. Thus, causing crashes during module unload. We should be using the indio_dev->dev structure for registering/unregistering child nodes. Reported-by: Doug Anderson Signed-off-by: Naveen Krishna Ch Reviewed-by: Doug Anderson Tested-by: Doug Anderson Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed