From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ns8.sony.co.jp (NS8.Sony.CO.JP [137.153.0.33]) by ozlabs.org (Postfix) with ESMTP id EE287DDE1C for ; Wed, 29 Aug 2007 21:31:08 +1000 (EST) Date: Wed, 29 Aug 2007 20:30:25 +0900 From: Masakazu Mokuno To: paulus@samba.org Subject: [PATCH] PS3: fix the bug the major version part is not compared, take2 Message-Id: <20070829202823.C2E8.MOKUNO@sm.sony.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Fix the bug that the major version part of the firmware is not compared. Signed-off-by: Masakazu Mokuno CC: Geoff Levand --- arch/powerpc/platforms/ps3/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/powerpc/platforms/ps3/setup.c +++ b/arch/powerpc/platforms/ps3/setup.c @@ -63,7 +63,8 @@ int ps3_compare_firmware_version(u16 maj x.minor = minor; x.rev = rev; - return (ps3_firmware_version.raw - x.raw); + return (ps3_firmware_version.raw > x.raw) - + (ps3_firmware_version.raw < x.raw); } EXPORT_SYMBOL_GPL(ps3_compare_firmware_version); -- Masakazu MOKUNO