summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2021-01-19 00:32:49 +0300
committerJagan Teki <jagan@amarulasolutions.com>2021-02-26 12:39:38 +0300
commit90d76f812b29c88f47279eca034da70d30a798d9 (patch)
tree8e913c8296dd93e7573edb6ffd1661dc5001e127 /cmd
parentde76ae36f622177e9af38b158d7f2f753d826d2c (diff)
downloadu-boot-90d76f812b29c88f47279eca034da70d30a798d9.tar.xz
spi: nxp_fspi: Fix error reporting
On the i.MX8M Mini, ret = clk_set_rate() sets ret to the value of the rate the clock was able to set. When checking for errors, it only checks that it is not NULL. Since positive numbers are not errors, only check for negative numbers when handling errors. Fixes: 383fded70c4f ("spi: nxp_fspi: new driver for the FlexSPI controller") Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions