net: rtl8139: Rework eeprom_delay() macro
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 12 Apr 2020 19:20:31 +0000 (21:20 +0200)
committermarex <marex@desktop.lan>
Fri, 1 May 2020 10:35:21 +0000 (12:35 +0200)
commitf80f4e4d729252eb6124e1afb5dde9f74c35c994
tree65928800a2225f7483cb363de3319ac8073484a3
parenta5e66e515b0e6615d6e6fed91e20361d9a476831
net: rtl8139: Rework eeprom_delay() macro

The macro assumes ee_addr variable to be present when it's being
used. Rework the macro into a function instead and pass it an
argument specifying the register base address, to make it future
proof for DM conversion.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/rtl8139.c