]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: mmc_test: remove BUG_ONs and deploy error handling
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 2 Nov 2016 07:26:57 +0000 (15:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 09:31:13 +0000 (10:31 +0100)
commitf28ef5617254a946c1a8576dc3f243347b143794
tree09c7191a88336c429ff2aa63954bfcac113f5cd8
parent8508cb9868015cad4f10d818f32f4030c75e88e0
mmc: mmc_test: remove BUG_ONs and deploy error handling

It is unnecessary to panic the kernel when testing mmc. Instead,
cast a warning for folkz to debug and return the error code to
the caller to indicate the failure of this test should be enough.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/mmc_test.c