igb: Fix for lockdep issue in igb_get_i2c_client
authorCarolyn Wyborny <carolyn.wyborny@intel.com>
Wed, 20 Feb 2013 07:40:55 +0000 (07:40 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Mar 2013 09:25:27 +0000 (01:25 -0800)
commit603e86fa39cd48edba5ee8a4d19637bd41e2a8bf
tree3108146bd51cbeec1ff9a790990791e8276d8ad4
parented65bdd8c0086d69948e6380dba0cc279a6906de
igb: Fix for lockdep issue in igb_get_i2c_client

This patch fixes a lockdep warning in igb_get_i2c_client by
refactoring the initialization and usage of the i2c_client
completely.  There is no on the fly allocation of the single
client needed today.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_hwmon.c
drivers/net/ethernet/intel/igb/igb_main.c