]> git.baikalelectronics.ru Git - kernel.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)
commita525fd463d29e90dde19e93bb0b1f745a88c880a
tree09c7191a88336c429ff2aa63954bfcac113f5cd8
parent1e826fe54f971d513d07ecc3881ed27e18283170
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