diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-06-15 18:13:36 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-06-22 14:30:20 +0100 |
commit | c760ac3022ed655e857126ca8ed4df3bfc7ce15a (patch) | |
tree | 591b868661f9a15309772cab6ba6b88bc032e31b /src/net/aoe.c | |
parent | 4bfd5b52c1fae75eb0449af626ec69543f9334fa (diff) | |
download | ipxe-c760ac3022ed655e857126ca8ed4df3bfc7ce15a.tar.gz |
[retry] Add timer_init() wrapper function
Standardise on using timer_init() to initialise an embedded retry
timer, to match the coding style used by other embedded objects.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/aoe.c')
-rw-r--r-- | src/net/aoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/aoe.c b/src/net/aoe.c index 80403db7a..4b700073a 100644 --- a/src/net/aoe.c +++ b/src/net/aoe.c @@ -439,10 +439,10 @@ int aoe_attach ( struct ata_device *ata, struct net_device *netdev, if ( ! aoe ) return -ENOMEM; ref_init ( &aoe->refcnt, aoe_free ); + timer_init ( &aoe->timer, aoe_timer_expired ); aoe->netdev = netdev_get ( netdev ); memcpy ( aoe->target, netdev->ll_broadcast, sizeof ( aoe->target ) ); aoe->tag = AOE_TAG_MAGIC; - aoe->timer.expired = aoe_timer_expired; /* Parse root path */ if ( ( rc = aoe_parse_root_path ( aoe, root_path ) ) != 0 ) |