firewire: core: clarify generate_config_rom usage
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 7 Oct 2009 22:42:27 +0000 (00:42 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 14 Oct 2009 21:10:48 +0000 (23:10 +0200)
commitfe242579e9f33150868f1bb79c7e262ad7953f17
tree6b6ca473ed6e506372f0c0e7d97faac02bc1f88c
parent8e85973efc87dfae8508f1a3440fd44612897458
firewire: core: clarify generate_config_rom usage

Move the static config ROM buffer into the scope of the two callers of
generate_config_rom().  That way the ROM length can be passed over as
return value rather than through a pointer argument.

It also becomes more obvious that accesses to the config ROM buffer have
to be serialized and how this is accomplished.  And firewire-core.ko
shrinks a bit as well.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-card.c