diff --git a/drivers/nor/m25p80.c b/drivers/nor/m25p80.c index daaf60c..5713ad5 100644 --- a/drivers/nor/m25p80.c +++ b/drivers/nor/m25p80.c @@ -257,6 +257,9 @@ } } + if (wait_till_ready(flash)) + return -ETIMEDOUT; + return 0; } @@ -684,7 +687,6 @@ return NULL; } - static struct file_operations m25p80_ops = { .read = m25p80_read, .write = m25p80_write,