From 4bfd5b52c1fae75eb0449af626ec69543f9334fa Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 15 Jun 2010 17:33:23 +0100 Subject: [refcnt] Add ref_init() wrapper function Standardise on using ref_init() to initialise an embedded reference count, to match the coding style used by other embedded objects. Signed-off-by: Michael Brown --- src/net/aoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net/aoe.c') diff --git a/src/net/aoe.c b/src/net/aoe.c index 497c12a02..80403db7a 100644 --- a/src/net/aoe.c +++ b/src/net/aoe.c @@ -438,7 +438,7 @@ int aoe_attach ( struct ata_device *ata, struct net_device *netdev, aoe = zalloc ( sizeof ( *aoe ) ); if ( ! aoe ) return -ENOMEM; - aoe->refcnt.free = aoe_free; + ref_init ( &aoe->refcnt, aoe_free ); aoe->netdev = netdev_get ( netdev ); memcpy ( aoe->target, netdev->ll_broadcast, sizeof ( aoe->target ) ); aoe->tag = AOE_TAG_MAGIC; -- cgit v1.2.3-55-g7522