Skip to content
Unverified Commit e0437512 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

spi: omap2-mcspi: Fix probe so driver works again



This condition was accidentally changed from "if (status < 0)" to
"if (status)".  The platform_get_irq() function returns non-zero
positive values on success so, unfortunately, the driver could not be
used.  Change the condition back to how it was.

Fixes: f4ca8c88 ("spi: omap2-mcspi: Switch to use dev_err_probe() helper")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/Yyq8Q/kd301wVzg8@kili


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