From: Grant Likely Date: Tue, 4 Nov 2014 13:14:13 +0000 (+0000) Subject: of/unittest: Remove test devices after adding them X-Git-Tag: omap-for-v3.19/fixes-rc1~127^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=851da976dc1d72becc03e144b38c4efab9e7b361;p=pandora-kernel.git of/unittest: Remove test devices after adding them The of_platform_populate() test cases don't remove the test devices after they are added. Fix this by adding tests for of_platform_depopulate(). At the same time rework the selftest() macro to return the test result value. This makes it easy to use the macro inside an if() condition. Signed-off-by: Grant Likely --- Reading git-diff-tree failed