aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/ps3/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/ps3/setup.c')
-rw-r--r--arch/powerpc/platforms/ps3/setup.c3
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}
68EXPORT_SYMBOL_GPL(ps3_compare_firmware_version); 69EXPORT_SYMBOL_GPL(ps3_compare_firmware_version);
69 70