spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_...
authorZhang Shurong <zhang_shurong@foxmail.com>
Sat, 22 Jul 2023 15:49:09 +0000 (23:49 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 26 Jul 2023 15:30:19 +0000 (16:30 +0100)
commit29a449e765ff70a5bd533be94babb6d36985d096
tree01b522c3a22123f530dc22e1347d9243f893a024
parent7ad1c439fb25907dba31af5d66b44c6a3b999c89
spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe()

The platform_get_irq might be failed and return a negative result. So
there should have an error handling code.

Fixed this by adding an error handling code.

Fixes: 8528547bcc33 ("spi: tegra: add spi driver for sflash controller")
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Link: https://lore.kernel.org/r/tencent_71FC162D589E4788C2152AAC84CD8D5C6D06@qq.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-sflash.c