hwmon: (emc1403) Remove unnecessary hwmon_device_unregister
authorYong Wang <yong.y.wang@linux.intel.com>
Fri, 17 Sep 2010 15:24:12 +0000 (17:24 +0200)
committerJean Delvare <khali@linux-fr.org>
Fri, 17 Sep 2010 15:24:12 +0000 (17:24 +0200)
commitf17c811d1433aa1966f9c5a744841427e9a97ecf
tree6ac5537523aa1cc76cec7adf1e8bc0d8d1544f60
parentc3b327d60bbba3f5ff8fd87d1efc0e95eb6c121b
hwmon: (emc1403) Remove unnecessary hwmon_device_unregister

It is unnecessary and wrong to call hwmon_device_unregister in error
handling before hwmon_device_register is called.

Signed-off-by: Yong Wang <yong.y.wang@intel.com>
Reviewed-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@kernel.org
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/emc1403.c