jedec_flash: Make sure any error is passed to the caller

Sometimes, we weren't using the errors accumulated in the error
variable 'ret', instead just returning the error code from
jedec_wait_ready(). Fix this by returning 'ret'.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>