Commit 0c930692107be4b91c3eeecfd9c9d600039f966f

Authored by Anton Blanchard
Committed by Benjamin Herrenschmidt
1 parent 579a53cafd

powerpc: Fix error return in rtas_flash module init

module_init should return 0 or a negative errno.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/powerpc/kernel/rtas_flash.c
... ... @@ -705,7 +705,7 @@
705 705 if (rtas_token("ibm,update-flash-64-and-reboot") ==
706 706 RTAS_UNKNOWN_SERVICE) {
707 707 pr_info("rtas_flash: no firmware flash support\n");
708   - return 1;
  708 + return -EINVAL;
709 709 }
710 710  
711 711 rtas_validate_flash_data.buf = kzalloc(VALIDATE_BUF_SIZE, GFP_KERNEL);