atavia: fix BYTE_OFFSET's macro argument value

A macro value has to use a correct argument name.

Change-Id: I666204ec92c6df625b34ca721b3e1af78772bccf
Signed-off-by: Alexander Goncharov <chat@joursoir.net>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/65193
Original-Reviewed-by: Felix Singer <felixsinger@posteo.net>
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71461
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/atavia.c b/atavia.c
index 529f02f..50e9610 100644
--- a/atavia.c
+++ b/atavia.c
@@ -46,7 +46,7 @@
 /* Select the byte we want to access. This is done by clearing the bit corresponding to the byte we want to
  * access, leaving the others set (yes, really). */
 #define ENABLE_BYTE(address)	((~(1 << ((address) & 3))) & BROM_BYTE_ENABLE_MASK)
-#define BYTE_OFFSET(address)	(((addr) & 3) * 8)
+#define BYTE_OFFSET(address)	(((address) & 3) * 8)
 
 static const struct dev_entry ata_via[] = {
 	{PCI_VENDOR_ID_VIA, 0x3249, DEP, "VIA", "VT6421A"},