diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-12-22 18:55:29 (GMT) |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-23 03:53:07 (GMT) |
commit | cf96237837ec6d4fc48bc2f735c71027cc0fc5fa (patch) | |
tree | 6ef598ca69fda2cf5e713312cf6ce225864e7f48 /drivers/net/rrunner.h | |
parent | 95e0918dbb6d83020ef3eb0a4276413264abd14d (diff) | |
download | linux-fsl-qoriq-cf96237837ec6d4fc48bc2f735c71027cc0fc5fa.tar.xz |
rrunner: use offsetof() instead of homegrown insanity
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/rrunner.h')
-rw-r--r-- | drivers/net/rrunner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/rrunner.h b/drivers/net/rrunner.h index 6a79825..6173f11 100644 --- a/drivers/net/rrunner.h +++ b/drivers/net/rrunner.h @@ -838,7 +838,7 @@ static unsigned int rr_read_eeprom(struct rr_private *rrpriv, unsigned long offset, unsigned char *buf, unsigned long length); -static u32 rr_read_eeprom_word(struct rr_private *rrpriv, void * offset); +static u32 rr_read_eeprom_word(struct rr_private *rrpriv, size_t offset); static int rr_load_firmware(struct net_device *dev); static inline void rr_raz_tx(struct rr_private *, struct net_device *); static inline void rr_raz_rx(struct rr_private *, struct net_device *); |