Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80c8ae28 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman
Browse files

misc: remove use of __devinit



CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: Eric Piel <eric.piel@tremplin-utc.net>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d6bed9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ static const struct ad_dpot_bus_ops bops = {
	.write_r8d16	= write_r8d16,
	.write_r8d16	= write_r8d16,
};
};


static int __devinit ad_dpot_i2c_probe(struct i2c_client *client,
static int ad_dpot_i2c_probe(struct i2c_client *client,
				      const struct i2c_device_id *id)
				      const struct i2c_device_id *id)
{
{
	struct ad_dpot_bus_data bdata = {
	struct ad_dpot_bus_data bdata = {
+1 −1
Original line number Original line Diff line number Diff line
@@ -75,7 +75,7 @@ static const struct ad_dpot_bus_ops bops = {
	.write_r8d8	= write16,
	.write_r8d8	= write16,
	.write_r8d16	= write24,
	.write_r8d16	= write24,
};
};
static int __devinit ad_dpot_spi_probe(struct spi_device *spi)
static int ad_dpot_spi_probe(struct spi_device *spi)
{
{
	struct ad_dpot_bus_data bdata = {
	struct ad_dpot_bus_data bdata = {
		.client = spi,
		.client = spi,
+2 −2
Original line number Original line Diff line number Diff line
@@ -641,7 +641,7 @@ static const struct attribute_group ad525x_group_commands = {
	.attrs = ad525x_attributes_commands,
	.attrs = ad525x_attributes_commands,
};
};


__devinit int ad_dpot_add_files(struct device *dev,
int ad_dpot_add_files(struct device *dev,
		unsigned features, unsigned rdac)
		unsigned features, unsigned rdac)
{
{
	int err = sysfs_create_file(&dev->kobj,
	int err = sysfs_create_file(&dev->kobj,
@@ -685,7 +685,7 @@ inline void ad_dpot_remove_files(struct device *dev,
	}
	}
}
}


int __devinit ad_dpot_probe(struct device *dev,
int ad_dpot_probe(struct device *dev,
		struct ad_dpot_bus_data *bdata, unsigned long devid,
		struct ad_dpot_bus_data *bdata, unsigned long devid,
			    const char *name)
			    const char *name)
{
{
+1 −1
Original line number Original line Diff line number Diff line
@@ -1047,7 +1047,7 @@ static struct attribute_group apds990x_attribute_group[] = {
	{.attrs = sysfs_attrs_ctrl },
	{.attrs = sysfs_attrs_ctrl },
};
};


static int __devinit apds990x_probe(struct i2c_client *client,
static int apds990x_probe(struct i2c_client *client,
				const struct i2c_device_id *id)
				const struct i2c_device_id *id)
{
{
	struct apds990x_chip *chip;
	struct apds990x_chip *chip;
+1 −1
Original line number Original line Diff line number Diff line
@@ -1162,7 +1162,7 @@ static struct attribute_group bh1770_attribute_group = {
	.attrs = sysfs_attrs
	.attrs = sysfs_attrs
};
};


static int __devinit bh1770_probe(struct i2c_client *client,
static int bh1770_probe(struct i2c_client *client,
				const struct i2c_device_id *id)
				const struct i2c_device_id *id)
{
{
	struct bh1770_chip *chip;
	struct bh1770_chip *chip;
Loading