From: Uwe Kleine-König Date: Wed, 28 Mar 2007 16:18:30 +0000 (+0100) Subject: [ARM] 4292/1: ns9xxx: Make REGGET consistant with REGSET X-Git-Tag: v2.6.22-rc1~1009^2~1^8~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fee64d1b55af57d7dba41f554769db83d7a32fde;p=linux-2.6-omap-h63xx.git [ARM] 4292/1: ns9xxx: Make REGGET consistant with REGSET This implies that REGGET gets a new parameter "var" to allow to hold the actual register value in a variable. Moreover REGGET was broken because it used "field" instead of "reg ## _ ## field" which proves that there are no callers to fix :-) Signed-off-by: Uwe Kleine-König Signed-off-by: Russell King --- diff --git a/include/asm-arm/arch-ns9xxx/hardware.h b/include/asm-arm/arch-ns9xxx/hardware.h index 6819da7c48d..25600554c4f 100644 --- a/include/asm-arm/arch-ns9xxx/hardware.h +++ b/include/asm-arm/arch-ns9xxx/hardware.h @@ -51,8 +51,9 @@ ~(__REGVAL(reg ## _ ## field, value)))) \ | (__REGVAL(reg ## _ ## field, value)))) -# define REGGET(reg, field) \ - ((reg & (reg ## _ ## field)) / (field & (-field))) +# define REGGET(var, reg, field) \ + ((var & (reg ## _ ## field)) / \ + ((reg ## _ ## field) & (-(reg ## _ ## field)))) #else