aboutsummaryrefslogtreecommitdiffstats
path: root/linux_mtd.c
diff options
context:
space:
mode:
authorAlexander Goncharov <chat@joursoir.net>2022-07-11 01:05:11 +0300
committerAnastasia Klimchuk <aklm@chromium.org>2022-07-15 00:55:57 +0000
commit494bedae23c547e0a3e8f86a5a69cf4b05bd1586 (patch)
treef258ec14dbf385e2bb8dd72c398e777bcabce6b2 /linux_mtd.c
parent964af12beece465c8e32e7e548f940ee957c50b7 (diff)
downloadflashrom-494bedae23c547e0a3e8f86a5a69cf4b05bd1586.tar.gz
flashrom-494bedae23c547e0a3e8f86a5a69cf4b05bd1586.tar.bz2
flashrom-494bedae23c547e0a3e8f86a5a69cf4b05bd1586.zip
mediatek_i2c_spi: Use new API to register shutdown function
This allows programmer to register shutdown function in spi_master struct, which means there is no need to call register_shutdown in init function, since this call is now a part of register_spi_master. As a consequence of using new API, this patch also fixes resource leakage in case register_shutdown() would fail. TEST=builds Change-Id: Iab03b8f51d7ec4e20cdae4406896d57903404dd0 Signed-off-by: Alexander Goncharov <chat@joursoir.net> Ticket: https://ticket.coreboot.org/issues/391 Reviewed-on: https://review.coreboot.org/c/flashrom/+/65746 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'linux_mtd.c')
0 files changed, 0 insertions, 0 deletions