diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-flash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-flash.c b/arch/powerpc/platforms/powernv/opal-flash.c index 145a80bc5354..5c21d9c07f45 100644 --- a/arch/powerpc/platforms/powernv/opal-flash.c +++ b/arch/powerpc/platforms/powernv/opal-flash.c | |||
@@ -131,7 +131,8 @@ static inline void opal_flash_validate(void) | |||
131 | { | 131 | { |
132 | long ret; | 132 | long ret; |
133 | void *buf = validate_flash_data.buf; | 133 | void *buf = validate_flash_data.buf; |
134 | __be32 size, result; | 134 | __be32 size = cpu_to_be32(validate_flash_data.buf_size); |
135 | __be32 result; | ||
135 | 136 | ||
136 | ret = opal_validate_flash(__pa(buf), &size, &result); | 137 | ret = opal_validate_flash(__pa(buf), &size, &result); |
137 | 138 | ||