ASoC: amd: fix an IS_ERR() vs NULL bug in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Jul 2021 08:17:56 +0000 (11:17 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jul 2021 12:14:53 +0000 (13:14 +0100)
commit37108ef45ae9021d23174ce89e76ad41443090bf
tree864ba618278857ee1ea405372df85f259703eed7
parent89d751d8f9dcfb69d1153070d5e5a86d36ac1b45
ASoC: amd: fix an IS_ERR() vs NULL bug in probe

The devm_ioremap() function returns NULL on error, it doesn't return
error pointers.

Fixes: e550339ee652 ("ASoC: amd: add vangogh i2s controller driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210727081756.GA19121@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/vangogh/acp5x-i2s.c