Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221853
b: refs/heads/master
c: 4f5b799
h: refs/heads/master
i:
  221851: 2e8fd49
v: v3
  • Loading branch information
Axel Lin authored and Guenter Roeck committed Nov 11, 2010
1 parent 105b72f commit 5fc9352
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: f0030d87be3cb2eb9eac633d09cb5d9f107ed0c6
refs/heads/master: 4f5b7994f0610fefff0782227ab71469ece54a5b
8 changes: 4 additions & 4 deletions trunk/drivers/hwmon/gpio-fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,6 @@ static int fan_ctrl_init(struct gpio_fan_data *fan_data,
}
}

err = sysfs_create_group(&pdev->dev.kobj, &gpio_fan_ctrl_group);
if (err)
goto err_free_gpio;

fan_data->num_ctrl = num_ctrl;
fan_data->ctrl = ctrl;
fan_data->num_speed = pdata->num_speed;
Expand All @@ -391,6 +387,10 @@ static int fan_ctrl_init(struct gpio_fan_data *fan_data,
goto err_free_gpio;
}

err = sysfs_create_group(&pdev->dev.kobj, &gpio_fan_ctrl_group);
if (err)
goto err_free_gpio;

return 0;

err_free_gpio:
Expand Down

0 comments on commit 5fc9352

Please sign in to comment.