Skip to content

Commit

Permalink
hwmon: remove use of __devinit
Browse files Browse the repository at this point in the history
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Jean Delvare <[email protected]>
Cc: Alistair John Strachan <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Juerg Haefliger <[email protected]>
Cc: Andreas Herrmann <[email protected]>
Cc: Clemens Ladisch <[email protected]>
Cc: Rudolf Marek <[email protected]>
Cc: Jim Cromie <[email protected]>
Cc: "Mark M. Hoffman" <[email protected]>
Cc: Roger Lucas <[email protected]>
Acked-by: Guenter Roeck <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
wfp5p authored and gregkh committed Nov 28, 2012
1 parent 9e5e9b7 commit 6c931ae
Show file tree
Hide file tree
Showing 45 changed files with 82 additions and 82 deletions.
8 changes: 4 additions & 4 deletions drivers/hwmon/abituguru.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static int abituguru_write(struct abituguru_data *data,
* alarm for sensor type X and then enabling the sensor as sensor type
* X, if we then get an alarm it is a sensor of type X.
*/
static int __devinit
static int
abituguru_detect_bank1_sensor_type(struct abituguru_data *data,
u8 sensor_addr)
{
Expand Down Expand Up @@ -635,7 +635,7 @@ abituguru_detect_bank1_sensor_type(struct abituguru_data *data,
* read/write test would be feasible because of the reaction above, I've
* however opted to stay on the safe side.
*/
static void __devinit
static void
abituguru_detect_no_bank2_sensors(struct abituguru_data *data)
{
int i;
Expand Down Expand Up @@ -691,7 +691,7 @@ abituguru_detect_no_bank2_sensors(struct abituguru_data *data)
(int)data->bank2_sensors);
}

static void __devinit
static void
abituguru_detect_no_pwms(struct abituguru_data *data)
{
int i, j;
Expand Down Expand Up @@ -1264,7 +1264,7 @@ static struct sensor_device_attribute_2 abituguru_sysfs_attr[] = {
SENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0),
};

static int __devinit abituguru_probe(struct platform_device *pdev)
static int abituguru_probe(struct platform_device *pdev)
{
struct abituguru_data *data;
int i, j, used, sysfs_names_free, sysfs_attr_i, res = -ENODEV;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/abituguru3.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ static struct sensor_device_attribute_2 abituguru3_sysfs_attr[] = {
SENSOR_ATTR_2(name, 0444, show_name, NULL, 0, 0),
};

static int __devinit abituguru3_probe(struct platform_device *pdev)
static int abituguru3_probe(struct platform_device *pdev)
{
const int no_sysfs_attr[3] = { 10, 8, 7 };
int sensor_index[3] = { 0, 1, 1 };
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/ad7314.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static const struct attribute_group ad7314_group = {
.attrs = ad7314_attributes,
};

static int __devinit ad7314_probe(struct spi_device *spi_dev)
static int ad7314_probe(struct spi_device *spi_dev)
{
int ret;
struct ad7314_data *chip;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/adcxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static struct sensor_device_attribute ad_input[] = {

/*----------------------------------------------------------------------*/

static int __devinit adcxx_probe(struct spi_device *spi)
static int adcxx_probe(struct spi_device *spi)
{
int channels = spi_get_device_id(spi)->driver_data;
struct adcxx *adc;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/ads7871.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static const struct attribute_group ads7871_group = {
.attrs = ads7871_attributes,
};

static int __devinit ads7871_probe(struct spi_device *spi)
static int ads7871_probe(struct spi_device *spi)
{
int ret, err;
uint8_t val;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/adt7411.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static int adt7411_detect(struct i2c_client *client,
return 0;
}

static int __devinit adt7411_probe(struct i2c_client *client,
static int adt7411_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct adt7411_data *data;
Expand Down
4 changes: 2 additions & 2 deletions drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static int __cpuinit get_tjmax(struct cpuinfo_x86 *c, u32 id,
return adjust_tjmax(c, id, dev);
}

static int __devinit create_name_attr(struct platform_data *pdata,
static int create_name_attr(struct platform_data *pdata,
struct device *dev)
{
sysfs_attr_init(&pdata->name_attr.attr);
Expand Down Expand Up @@ -553,7 +553,7 @@ static void coretemp_remove_core(struct platform_data *pdata,
pdata->core_data[indx] = NULL;
}

static int __devinit coretemp_probe(struct platform_device *pdev)
static int coretemp_probe(struct platform_device *pdev)
{
struct platform_data *pdata;
int err;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/da9052-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ static struct attribute *da9052_attr[] = {

static const struct attribute_group da9052_attr_group = {.attrs = da9052_attr};

static int __devinit da9052_hwmon_probe(struct platform_device *pdev)
static int da9052_hwmon_probe(struct platform_device *pdev)
{
struct da9052_hwmon *hwmon;
int ret;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/dme1737.c
Original file line number Diff line number Diff line change
Expand Up @@ -2630,7 +2630,7 @@ static int __init dme1737_isa_device_add(unsigned short addr)
return err;
}

static int __devinit dme1737_isa_probe(struct platform_device *pdev)
static int dme1737_isa_probe(struct platform_device *pdev)
{
u8 company, device;
struct resource *res;
Expand Down
4 changes: 2 additions & 2 deletions drivers/hwmon/f71805f.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ static struct attribute *f71805f_attr_pwm[] = {
* Device registration and initialization
*/

static void __devinit f71805f_init_device(struct f71805f_data *data)
static void f71805f_init_device(struct f71805f_data *data)
{
u8 reg;
int i;
Expand Down Expand Up @@ -1374,7 +1374,7 @@ static void __devinit f71805f_init_device(struct f71805f_data *data)
}
}

static int __devinit f71805f_probe(struct platform_device *pdev)
static int f71805f_probe(struct platform_device *pdev)
{
struct f71805f_sio_data *sio_data = pdev->dev.platform_data;
struct f71805f_data *data;
Expand Down
8 changes: 4 additions & 4 deletions drivers/hwmon/f71882fg.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ static ssize_t store_pwm_auto_point_temp(struct device *dev,
static ssize_t show_name(struct device *dev, struct device_attribute *devattr,
char *buf);

static int __devinit f71882fg_probe(struct platform_device *pdev);
static int f71882fg_probe(struct platform_device *pdev);
static int f71882fg_remove(struct platform_device *pdev);

static struct platform_driver f71882fg_driver = {
Expand Down Expand Up @@ -2145,7 +2145,7 @@ static ssize_t show_name(struct device *dev, struct device_attribute *devattr,
return sprintf(buf, "%s\n", f71882fg_names[data->type]);
}

static int __devinit f71882fg_create_sysfs_files(struct platform_device *pdev,
static int f71882fg_create_sysfs_files(struct platform_device *pdev,
struct sensor_device_attribute_2 *attr, int count)
{
int err, i;
Expand All @@ -2167,7 +2167,7 @@ static void f71882fg_remove_sysfs_files(struct platform_device *pdev,
device_remove_file(&pdev->dev, &attr[i].dev_attr);
}

static int __devinit f71882fg_create_fan_sysfs_files(
static int f71882fg_create_fan_sysfs_files(
struct platform_device *pdev, int idx)
{
struct f71882fg_data *data = platform_get_drvdata(pdev);
Expand Down Expand Up @@ -2265,7 +2265,7 @@ static int __devinit f71882fg_create_fan_sysfs_files(
return err;
}

static int __devinit f71882fg_probe(struct platform_device *pdev)
static int f71882fg_probe(struct platform_device *pdev)
{
struct f71882fg_data *data;
struct f71882fg_sio_data *sio_data = pdev->dev.platform_data;
Expand Down
6 changes: 3 additions & 3 deletions drivers/hwmon/fam15h_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static const struct attribute_group fam15h_power_attr_group = {
.attrs = fam15h_power_attrs,
};

static bool __devinit fam15h_power_is_internal_node0(struct pci_dev *f4)
static bool fam15h_power_is_internal_node0(struct pci_dev *f4)
{
u32 val;

Expand Down Expand Up @@ -168,7 +168,7 @@ static int fam15h_power_resume(struct pci_dev *pdev)
#define fam15h_power_resume NULL
#endif

static void __devinit fam15h_power_init_data(struct pci_dev *f4,
static void fam15h_power_init_data(struct pci_dev *f4,
struct fam15h_power_data *data)
{
u32 val;
Expand All @@ -194,7 +194,7 @@ static void __devinit fam15h_power_init_data(struct pci_dev *f4,
data->processor_pwr_watts = (tmp * 15625) >> 10;
}

static int __devinit fam15h_power_probe(struct pci_dev *pdev,
static int fam15h_power_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
struct fam15h_power_data *data;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/gpio-fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ static struct of_device_id of_gpio_fan_match[] __devinitdata = {
};
#endif /* CONFIG_OF_GPIO */

static int __devinit gpio_fan_probe(struct platform_device *pdev)
static int gpio_fan_probe(struct platform_device *pdev)
{
int err;
struct gpio_fan_data *fan_data;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/hih6130.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static const struct attribute_group hih6130_attr_group = {
* device's name.
* Returns 0 on success.
*/
static int __devinit hih6130_probe(struct i2c_client *client,
static int hih6130_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct hih6130 *hih6130;
Expand Down
10 changes: 5 additions & 5 deletions drivers/hwmon/i5k_amb.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static ssize_t show_label(struct device *dev,
attr->index & DIMM_MASK);
}

static int __devinit i5k_amb_hwmon_init(struct platform_device *pdev)
static int i5k_amb_hwmon_init(struct platform_device *pdev)
{
int i, j, k, d = 0;
u16 c;
Expand Down Expand Up @@ -406,7 +406,7 @@ static int __devinit i5k_amb_hwmon_init(struct platform_device *pdev)
return res;
}

static int __devinit i5k_amb_add(void)
static int i5k_amb_add(void)
{
int res = -ENODEV;

Expand All @@ -425,7 +425,7 @@ static int __devinit i5k_amb_add(void)
return res;
}

static int __devinit i5k_find_amb_registers(struct i5k_amb_data *data,
static int i5k_find_amb_registers(struct i5k_amb_data *data,
unsigned long devid)
{
struct pci_dev *pcidev;
Expand Down Expand Up @@ -459,7 +459,7 @@ static int __devinit i5k_find_amb_registers(struct i5k_amb_data *data,
return res;
}

static int __devinit i5k_channel_probe(u16 *amb_present, unsigned long dev_id)
static int i5k_channel_probe(u16 *amb_present, unsigned long dev_id)
{
struct pci_dev *pcidev;
u16 val16;
Expand Down Expand Up @@ -503,7 +503,7 @@ static struct pci_device_id i5k_amb_ids[] __devinitdata = {
MODULE_DEVICE_TABLE(pci, i5k_amb_ids);
#endif

static int __devinit i5k_amb_probe(struct platform_device *pdev)
static int i5k_amb_probe(struct platform_device *pdev)
{
struct i5k_amb_data *data;
struct resource *reso;
Expand Down
6 changes: 3 additions & 3 deletions drivers/hwmon/it87.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ static void it87_remove_files(struct device *dev)
sysfs_remove_group(&dev->kobj, &it87_group_label);
}

static int __devinit it87_probe(struct platform_device *pdev)
static int it87_probe(struct platform_device *pdev)
{
struct it87_data *data;
struct resource *res;
Expand Down Expand Up @@ -2191,7 +2191,7 @@ static void it87_write_value(struct it87_data *data, u8 reg, u8 value)
}

/* Return 1 if and only if the PWM interface is safe to use */
static int __devinit it87_check_pwm(struct device *dev)
static int it87_check_pwm(struct device *dev)
{
struct it87_data *data = dev_get_drvdata(dev);
/*
Expand Down Expand Up @@ -2248,7 +2248,7 @@ static int __devinit it87_check_pwm(struct device *dev)
}

/* Called when we have found a new IT87. */
static void __devinit it87_init_device(struct platform_device *pdev)
static void it87_init_device(struct platform_device *pdev)
{
struct it87_sio_data *sio_data = pdev->dev.platform_data;
struct it87_data *data = platform_get_drvdata(pdev);
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/jz4740-hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static const struct attribute_group jz4740_hwmon_attr_group = {
.attrs = jz4740_hwmon_attributes,
};

static int __devinit jz4740_hwmon_probe(struct platform_device *pdev)
static int jz4740_hwmon_probe(struct platform_device *pdev)
{
int ret;
struct jz4740_hwmon *hwmon;
Expand Down
4 changes: 2 additions & 2 deletions drivers/hwmon/k10temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, show_temp_crit, NULL, 0);
static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, show_temp_crit, NULL, 1);
static DEVICE_ATTR(name, S_IRUGO, show_name, NULL);

static bool __devinit has_erratum_319(struct pci_dev *pdev)
static bool has_erratum_319(struct pci_dev *pdev)
{
u32 pkg_type, reg_dram_cfg;

Expand Down Expand Up @@ -129,7 +129,7 @@ static bool __devinit has_erratum_319(struct pci_dev *pdev)
(boot_cpu_data.x86_model == 4 && boot_cpu_data.x86_mask <= 2);
}

static int __devinit k10temp_probe(struct pci_dev *pdev,
static int k10temp_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
struct device *hwmon_dev;
Expand Down
4 changes: 2 additions & 2 deletions drivers/hwmon/k8temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static DEFINE_PCI_DEVICE_TABLE(k8temp_ids) = {

MODULE_DEVICE_TABLE(pci, k8temp_ids);

static int __devinit is_rev_g_desktop(u8 model)
static int is_rev_g_desktop(u8 model)
{
u32 brandidx;

Expand Down Expand Up @@ -173,7 +173,7 @@ static int __devinit is_rev_g_desktop(u8 model)
return 1;
}

static int __devinit k8temp_probe(struct pci_dev *pdev,
static int k8temp_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{
int err;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/lm70.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static DEVICE_ATTR(name, S_IRUGO, lm70_show_name, NULL);

/*----------------------------------------------------------------------*/

static int __devinit lm70_probe(struct spi_device *spi)
static int lm70_probe(struct spi_device *spi)
{
int chip = spi_get_device_id(spi)->driver_data;
struct lm70 *p_lm70;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/lm78.c
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ static struct lm78_data *lm78_update_device(struct device *dev)
}

#ifdef CONFIG_ISA
static int __devinit lm78_isa_probe(struct platform_device *pdev)
static int lm78_isa_probe(struct platform_device *pdev)
{
int err;
struct lm78_data *data;
Expand Down
4 changes: 2 additions & 2 deletions drivers/hwmon/max1111.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static const struct attribute_group max1110_attr_group = {
.attrs = max1110_attributes,
};

static int __devinit setup_transfer(struct max1111_data *data)
static int setup_transfer(struct max1111_data *data)
{
struct spi_message *m;
struct spi_transfer *x;
Expand All @@ -179,7 +179,7 @@ static int __devinit setup_transfer(struct max1111_data *data)
return 0;
}

static int __devinit max1111_probe(struct spi_device *spi)
static int max1111_probe(struct spi_device *spi)
{
enum chips chip = spi_get_device_id(spi)->driver_data;
struct max1111_data *data;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/max197.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static const struct attribute_group max197_sysfs_group = {
},
};

static int __devinit max197_probe(struct platform_device *pdev)
static int max197_probe(struct platform_device *pdev)
{
int ch, ret;
struct max197_data *data;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/ntc_thermistor.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static const struct attribute_group ntc_attr_group = {
.attrs = ntc_attributes,
};

static int __devinit ntc_thermistor_probe(struct platform_device *pdev)
static int ntc_thermistor_probe(struct platform_device *pdev)
{
struct ntc_data *data;
struct ntc_thermistor_platform_data *pdata = pdev->dev.platform_data;
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/pc87360.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ static void pc87360_remove_files(struct device *dev)
sysfs_remove_group(&dev->kobj, &pc8736x_vin_group);
}

static int __devinit pc87360_probe(struct platform_device *pdev)
static int pc87360_probe(struct platform_device *pdev)
{
int i;
struct pc87360_data *data;
Expand Down
Loading

0 comments on commit 6c931ae

Please sign in to comment.