diff options
author | Masakazu Mokuno <mokuno@sm.sony.co.jp> | 2007-08-29 07:30:25 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-30 06:49:41 -0400 |
commit | fc43dca9e75b87d24a16d5be7b497e83837d9d31 (patch) | |
tree | 0c46f32f4c4ad7c1446215dfb8e6eee5a2e46039 /arch/powerpc | |
parent | 13a6976afdb10d54ac5ad344aa0c588bc0bd8b0a (diff) |
[POWERPC] PS3: Fix bug where the major version part is not compared
Fix the bug that the major version part of the firmware version number
is ignored in the comparison done by ps3_compare_firmware_version
because the difference of two 64-bit quantities is returned as an int.
Signed-off-by: Masakazu Mokuno <mokuno@sm.sony.co.jp>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/ps3/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c index 2952b22f1c84..609945dbe394 100644 --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c | |||
@@ -63,7 +63,8 @@ int ps3_compare_firmware_version(u16 major, u16 minor, u16 rev) | |||
63 | x.minor = minor; | 63 | x.minor = minor; |
64 | x.rev = rev; | 64 | x.rev = rev; |
65 | 65 | ||
66 | return (ps3_firmware_version.raw - x.raw); | 66 | return (ps3_firmware_version.raw > x.raw) - |
67 | (ps3_firmware_version.raw < x.raw); | ||
67 | } | 68 | } |
68 | EXPORT_SYMBOL_GPL(ps3_compare_firmware_version); | 69 | EXPORT_SYMBOL_GPL(ps3_compare_firmware_version); |
69 | 70 | ||