firewire: Use device->groups for adding device attributes.
authorKristian Høgsberg <krh@redhat.com>
Tue, 27 Mar 2007 23:35:13 +0000 (19:35 -0400)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 28 Mar 2007 19:30:13 +0000 (21:30 +0200)
commit6f2e53d5135a861d3ee8afdacac5cde13c49a05d
treed36dcf30cc2bc1909d4f12c1a6ff77c960a92027
parentecab413359541b1dbe8e8c91cb5fa8eafa662c05
firewire: Use device->groups for adding device attributes.

We dynamically create an attribute group for the key present on the
device in hand and point device->group to it.  This way the device
core adds the sysfs attributes for us as the device is added.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-device.c
drivers/firewire/fw-device.h