diff options
author | 2023-07-22 23:49:09 +0800 | |
---|---|---|
committer | 2023-07-26 16:30:19 +0100 | |
commit | 29a449e765ff70a5bd533be94babb6d36985d096 (patch) | |
tree | 01b522c3a22123f530dc22e1347d9243f893a024 /drivers/spi/spi-qcom-qspi.c | |
parent | spi: fsl: Remove unused extern declarations (diff) | |
download | linux-rng-29a449e765ff70a5bd533be94babb6d36985d096.tar.xz linux-rng-29a449e765ff70a5bd533be94babb6d36985d096.zip |
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>
Diffstat (limited to 'drivers/spi/spi-qcom-qspi.c')
0 files changed, 0 insertions, 0 deletions