lm75.c (7a9787e1eba95a166265e6a260cf30af04ef0a99) | lm75.c (739cf3a2691951a2d68baa275201a7e931fd50e9) |
---|---|
1/* 2 lm75.c - Part of lm_sensors, Linux kernel modules for hardware 3 monitoring 4 Copyright (c) 1998, 1999 Frodo Looijaard <frodol@dds.nl> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or --- 176 unchanged lines hidden (view full) --- 185 186 data->hwmon_dev = hwmon_device_register(&client->dev); 187 if (IS_ERR(data->hwmon_dev)) { 188 status = PTR_ERR(data->hwmon_dev); 189 goto exit_remove; 190 } 191 192 dev_info(&client->dev, "%s: sensor '%s'\n", | 1/* 2 lm75.c - Part of lm_sensors, Linux kernel modules for hardware 3 monitoring 4 Copyright (c) 1998, 1999 Frodo Looijaard <frodol@dds.nl> 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or --- 176 unchanged lines hidden (view full) --- 185 186 data->hwmon_dev = hwmon_device_register(&client->dev); 187 if (IS_ERR(data->hwmon_dev)) { 188 status = PTR_ERR(data->hwmon_dev); 189 goto exit_remove; 190 } 191 192 dev_info(&client->dev, "%s: sensor '%s'\n", |
193 data->hwmon_dev->bus_id, client->name); | 193 dev_name(data->hwmon_dev), client->name); |
194 195 return 0; 196 197exit_remove: 198 sysfs_remove_group(&client->dev.kobj, &lm75_group); 199exit_free: 200 i2c_set_clientdata(client, NULL); 201 kfree(data); --- 180 unchanged lines hidden --- | 194 195 return 0; 196 197exit_remove: 198 sysfs_remove_group(&client->dev.kobj, &lm75_group); 199exit_free: 200 i2c_set_clientdata(client, NULL); 201 kfree(data); --- 180 unchanged lines hidden --- |