sfc: initialize dynamic sysfs attributes for lockdep
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 19 Jul 2012 07:04:45 +0000 (07:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jul 2012 17:48:08 +0000 (10:48 -0700)
commita9ec6bd1f7bccdc1304629f8fbb2e02035026307
tree9e13743e64eca444fc9828b72c9fcbdfa062c028
parent8427b2acfdd5e6c554fb7ad1fbccf53a24a08454
sfc: initialize dynamic sysfs attributes for lockdep

Dynamically allocated sysfs attributes must be initialized using
sysfs_attr_init(), otherwise lockdep complains:
BUG: key <address> not in .data!

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/mcdi_mon.c