Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273579
b: refs/heads/master
c: 547a1c9
h: refs/heads/master
i:
  273577: 2abc409
  273575: fbc027b
v: v3
  • Loading branch information
Jean Delvare authored and Jean Delvare committed Nov 4, 2011
1 parent aff5b42 commit fc08c67
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24d6e2a89a1ff0a035f163a83a2812a3192083b6
refs/heads/master: 547a1c99d0052c8bee0a8fe4091e6a9094c3cde3
20 changes: 12 additions & 8 deletions trunk/drivers/hwmon/ibmaem.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,24 +570,26 @@ static int aem_init_aem1_inst(struct aem_ipmi_data *probe, u8 module_handle)
platform_set_drvdata(data->pdev, data);

/* Set up IPMI interface */
if (aem_init_ipmi_data(&data->ipmi, probe->interface,
probe->bmc_device))
res = aem_init_ipmi_data(&data->ipmi, probe->interface,
probe->bmc_device);
if (res)
goto ipmi_err;

/* Register with hwmon */
data->hwmon_dev = hwmon_device_register(&data->pdev->dev);

if (IS_ERR(data->hwmon_dev)) {
dev_err(&data->pdev->dev, "Unable to register hwmon "
"device for IPMI interface %d\n",
probe->interface);
res = PTR_ERR(data->hwmon_dev);
goto hwmon_reg_err;
}

data->update = update_aem1_sensors;

/* Find sensors */
if (aem1_find_sensors(data))
res = aem1_find_sensors(data);
if (res)
goto sensor_err;

/* Add to our list of AEM devices */
Expand Down Expand Up @@ -704,24 +706,26 @@ static int aem_init_aem2_inst(struct aem_ipmi_data *probe,
platform_set_drvdata(data->pdev, data);

/* Set up IPMI interface */
if (aem_init_ipmi_data(&data->ipmi, probe->interface,
probe->bmc_device))
res = aem_init_ipmi_data(&data->ipmi, probe->interface,
probe->bmc_device);
if (res)
goto ipmi_err;

/* Register with hwmon */
data->hwmon_dev = hwmon_device_register(&data->pdev->dev);

if (IS_ERR(data->hwmon_dev)) {
dev_err(&data->pdev->dev, "Unable to register hwmon "
"device for IPMI interface %d\n",
probe->interface);
res = PTR_ERR(data->hwmon_dev);
goto hwmon_reg_err;
}

data->update = update_aem2_sensors;

/* Find sensors */
if (aem2_find_sensors(data))
res = aem2_find_sensors(data);
if (res)
goto sensor_err;

/* Add to our list of AEM devices */
Expand Down

0 comments on commit fc08c67

Please sign in to comment.