dmaengine: stm32-dmamux: Fix a NULL vs IS_ERR() check in probe
authorDan Carpenter <[email protected]>
Tue, 3 Oct 2017 10:54:50 +0000 (13:54 +0300)
committerVinod Koul <[email protected]>
Sun, 8 Oct 2017 10:47:39 +0000 (16:17 +0530)
commit4219ff33b26dbaa08c728ee4ad1a3a5aae300e1a
treea53631168f12dcbaed2065dc08e1f6ceb2ef9ab1
parenta4ffb13c8946abc4b92621275de6718e19db860d
dmaengine: stm32-dmamux: Fix a NULL vs IS_ERR() check in probe

devm_ioremap_resource() doesn't return NULL, it returns error pointers.

Fixes: df7e762db5f6 ("dmaengine: Add STM32 DMAMUX driver")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Pierre-Yves MORDRET <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/stm32-dmamux.c