Skip to content
Unverified Commit 2b60c49f authored by Lukas Wunner's avatar Lukas Wunner Committed by Mark Brown
Browse files

spi: amd: Fix duplicate iounmap in error path



The AMD SPI driver uses devm_ioremap_resource() to map its registers, so
they're automatically unmapped via device_release() when the last ref on
the SPI controller is dropped.  The additional iounmap() in the ->probe()
error path is thus unnecessary.

Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/497cc38ae2beb7900ae05a1463eb83ff96e2770e.1588590210.git.lukas@wunner.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b68527df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment