Commit 1b9e450d authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

backlight: 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: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Acked-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1723fa2
...@@ -282,7 +282,7 @@ static const struct attribute_group adp5520_bl_attr_group = { ...@@ -282,7 +282,7 @@ static const struct attribute_group adp5520_bl_attr_group = {
.attrs = adp5520_bl_attributes, .attrs = adp5520_bl_attributes,
}; };
static int __devinit adp5520_bl_probe(struct platform_device *pdev) static int adp5520_bl_probe(struct platform_device *pdev)
{ {
struct backlight_properties props; struct backlight_properties props;
struct backlight_device *bl; struct backlight_device *bl;
......
...@@ -213,7 +213,7 @@ static int adp8860_led_setup(struct adp8860_led *led) ...@@ -213,7 +213,7 @@ static int adp8860_led_setup(struct adp8860_led *led)
return ret; return ret;
} }
static int __devinit adp8860_led_probe(struct i2c_client *client) static int adp8860_led_probe(struct i2c_client *client)
{ {
struct adp8860_backlight_platform_data *pdata = struct adp8860_backlight_platform_data *pdata =
client->dev.platform_data; client->dev.platform_data;
...@@ -310,7 +310,7 @@ static int __devexit adp8860_led_remove(struct i2c_client *client) ...@@ -310,7 +310,7 @@ static int __devexit adp8860_led_remove(struct i2c_client *client)
return 0; return 0;
} }
#else #else
static int __devinit adp8860_led_probe(struct i2c_client *client) static int adp8860_led_probe(struct i2c_client *client)
{ {
return 0; return 0;
} }
...@@ -650,7 +650,7 @@ static const struct attribute_group adp8860_bl_attr_group = { ...@@ -650,7 +650,7 @@ static const struct attribute_group adp8860_bl_attr_group = {
.attrs = adp8860_bl_attributes, .attrs = adp8860_bl_attributes,
}; };
static int __devinit adp8860_probe(struct i2c_client *client, static int adp8860_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct backlight_device *bl; struct backlight_device *bl;
......
...@@ -235,7 +235,7 @@ static int adp8870_led_setup(struct adp8870_led *led) ...@@ -235,7 +235,7 @@ static int adp8870_led_setup(struct adp8870_led *led)
return ret; return ret;
} }
static int __devinit adp8870_led_probe(struct i2c_client *client) static int adp8870_led_probe(struct i2c_client *client)
{ {
struct adp8870_backlight_platform_data *pdata = struct adp8870_backlight_platform_data *pdata =
client->dev.platform_data; client->dev.platform_data;
...@@ -335,7 +335,7 @@ static int __devexit adp8870_led_remove(struct i2c_client *client) ...@@ -335,7 +335,7 @@ static int __devexit adp8870_led_remove(struct i2c_client *client)
return 0; return 0;
} }
#else #else
static int __devinit adp8870_led_probe(struct i2c_client *client) static int adp8870_led_probe(struct i2c_client *client)
{ {
return 0; return 0;
} }
...@@ -839,7 +839,7 @@ static const struct attribute_group adp8870_bl_attr_group = { ...@@ -839,7 +839,7 @@ static const struct attribute_group adp8870_bl_attr_group = {
.attrs = adp8870_bl_attributes, .attrs = adp8870_bl_attributes,
}; };
static int __devinit adp8870_probe(struct i2c_client *client, static int adp8870_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct backlight_properties props; struct backlight_properties props;
......
...@@ -474,7 +474,7 @@ static const struct backlight_ops ams369fg06_backlight_ops = { ...@@ -474,7 +474,7 @@ static const struct backlight_ops ams369fg06_backlight_ops = {
.update_status = ams369fg06_set_brightness, .update_status = ams369fg06_set_brightness,
}; };
static int __devinit ams369fg06_probe(struct spi_device *spi) static int ams369fg06_probe(struct spi_device *spi)
{ {
int ret = 0; int ret = 0;
struct ams369fg06 *lcd = NULL; struct ams369fg06 *lcd = NULL;
......
...@@ -137,7 +137,7 @@ static const struct hw_data nvidia_chipset_data = { ...@@ -137,7 +137,7 @@ static const struct hw_data nvidia_chipset_data = {
.set_brightness = nvidia_chipset_set_brightness, .set_brightness = nvidia_chipset_set_brightness,
}; };
static int __devinit apple_bl_add(struct acpi_device *dev) static int apple_bl_add(struct acpi_device *dev)
{ {
struct backlight_properties props; struct backlight_properties props;
struct pci_dev *host; struct pci_dev *host;
......
...@@ -529,7 +529,7 @@ static int setup_gpio_backlight(struct corgi_lcd *lcd, ...@@ -529,7 +529,7 @@ static int setup_gpio_backlight(struct corgi_lcd *lcd,
return 0; return 0;
} }
static int __devinit corgi_lcd_probe(struct spi_device *spi) static int corgi_lcd_probe(struct spi_device *spi)
{ {
struct backlight_properties props; struct backlight_properties props;
struct corgi_lcd_platform_data *pdata = spi->dev.platform_data; struct corgi_lcd_platform_data *pdata = spi->dev.platform_data;
......
...@@ -103,7 +103,7 @@ static const struct backlight_ops hp680bl_ops = { ...@@ -103,7 +103,7 @@ static const struct backlight_ops hp680bl_ops = {
.update_status = hp680bl_set_intensity, .update_status = hp680bl_set_intensity,
}; };
static int __devinit hp680bl_probe(struct platform_device *pdev) static int hp680bl_probe(struct platform_device *pdev)
{ {
struct backlight_properties props; struct backlight_properties props;
struct backlight_device *bd; struct backlight_device *bd;
......
...@@ -171,7 +171,7 @@ static struct lcd_ops ili9320_ops = { ...@@ -171,7 +171,7 @@ static struct lcd_ops ili9320_ops = {
.set_power = ili9320_set_power, .set_power = ili9320_set_power,
}; };
static void __devinit ili9320_setup_spi(struct ili9320 *ili, static void ili9320_setup_spi(struct ili9320 *ili,
struct spi_device *dev) struct spi_device *dev)
{ {
struct ili9320_spi *spi = &ili->access.spi; struct ili9320_spi *spi = &ili->access.spi;
...@@ -197,7 +197,7 @@ static void __devinit ili9320_setup_spi(struct ili9320 *ili, ...@@ -197,7 +197,7 @@ static void __devinit ili9320_setup_spi(struct ili9320 *ili,
spi_message_add_tail(&spi->xfer[1], &spi->message); spi_message_add_tail(&spi->xfer[1], &spi->message);
} }
int __devinit ili9320_probe_spi(struct spi_device *spi, int ili9320_probe_spi(struct spi_device *spi,
struct ili9320_client *client) struct ili9320_client *client)
{ {
struct ili9320_platdata *cfg = spi->dev.platform_data; struct ili9320_platdata *cfg = spi->dev.platform_data;
......
...@@ -150,7 +150,7 @@ static struct lcd_ops l4f_ops = { ...@@ -150,7 +150,7 @@ static struct lcd_ops l4f_ops = {
.get_power = l4f00242t03_lcd_power_get, .get_power = l4f00242t03_lcd_power_get,
}; };
static int __devinit l4f00242t03_probe(struct spi_device *spi) static int l4f00242t03_probe(struct spi_device *spi)
{ {
struct l4f00242t03_priv *priv; struct l4f00242t03_priv *priv;
struct l4f00242t03_pdata *pdata = spi->dev.platform_data; struct l4f00242t03_pdata *pdata = spi->dev.platform_data;
......
...@@ -257,7 +257,7 @@ static struct attribute_group lm3533_bl_attribute_group = { ...@@ -257,7 +257,7 @@ static struct attribute_group lm3533_bl_attribute_group = {
.attrs = lm3533_bl_attributes .attrs = lm3533_bl_attributes
}; };
static int __devinit lm3533_bl_setup(struct lm3533_bl *bl, static int lm3533_bl_setup(struct lm3533_bl *bl,
struct lm3533_bl_platform_data *pdata) struct lm3533_bl_platform_data *pdata)
{ {
int ret; int ret;
...@@ -269,7 +269,7 @@ static int __devinit lm3533_bl_setup(struct lm3533_bl *bl, ...@@ -269,7 +269,7 @@ static int __devinit lm3533_bl_setup(struct lm3533_bl *bl,
return lm3533_ctrlbank_set_pwm(&bl->cb, pdata->pwm); return lm3533_ctrlbank_set_pwm(&bl->cb, pdata->pwm);
} }
static int __devinit lm3533_bl_probe(struct platform_device *pdev) static int lm3533_bl_probe(struct platform_device *pdev)
{ {
struct lm3533 *lm3533; struct lm3533 *lm3533;
struct lm3533_bl_platform_data *pdata; struct lm3533_bl_platform_data *pdata;
......
...@@ -55,7 +55,7 @@ struct lm3630_chip_data { ...@@ -55,7 +55,7 @@ struct lm3630_chip_data {
}; };
/* initialize chip */ /* initialize chip */
static int __devinit lm3630_chip_init(struct lm3630_chip_data *pchip) static int lm3630_chip_init(struct lm3630_chip_data *pchip)
{ {
int ret; int ret;
unsigned int reg_val; unsigned int reg_val;
...@@ -349,7 +349,7 @@ static const struct regmap_config lm3630_regmap = { ...@@ -349,7 +349,7 @@ static const struct regmap_config lm3630_regmap = {
.max_register = REG_MAX, .max_register = REG_MAX,
}; };
static int __devinit lm3630_probe(struct i2c_client *client, static int lm3630_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lm3630_platform_data *pdata = client->dev.platform_data; struct lm3630_platform_data *pdata = client->dev.platform_data;
......
...@@ -48,7 +48,7 @@ struct lm3639_chip_data { ...@@ -48,7 +48,7 @@ struct lm3639_chip_data {
}; };
/* initialize chip */ /* initialize chip */
static int __devinit lm3639_chip_init(struct lm3639_chip_data *pchip) static int lm3639_chip_init(struct lm3639_chip_data *pchip)
{ {
int ret; int ret;
unsigned int reg_val; unsigned int reg_val;
...@@ -299,7 +299,7 @@ static const struct regmap_config lm3639_regmap = { ...@@ -299,7 +299,7 @@ static const struct regmap_config lm3639_regmap = {
.max_register = REG_MAX, .max_register = REG_MAX,
}; };
static int __devinit lm3639_probe(struct i2c_client *client, static int lm3639_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
int ret; int ret;
......
...@@ -150,7 +150,7 @@ static struct lcd_ops lms_ops = { ...@@ -150,7 +150,7 @@ static struct lcd_ops lms_ops = {
.get_power = NULL, .get_power = NULL,
}; };
static int __devinit lms283gf05_probe(struct spi_device *spi) static int lms283gf05_probe(struct spi_device *spi)
{ {
struct lms283gf05_state *st; struct lms283gf05_state *st;
struct lms283gf05_pdata *pdata = spi->dev.platform_data; struct lms283gf05_pdata *pdata = spi->dev.platform_data;
......
...@@ -226,7 +226,7 @@ static struct lcd_ops ltv_ops = { ...@@ -226,7 +226,7 @@ static struct lcd_ops ltv_ops = {
.set_power = ltv350qv_set_power, .set_power = ltv350qv_set_power,
}; };
static int __devinit ltv350qv_probe(struct spi_device *spi) static int ltv350qv_probe(struct spi_device *spi)
{ {
struct ltv350qv *lcd; struct ltv350qv *lcd;
struct lcd_device *ld; struct lcd_device *ld;
......
...@@ -101,7 +101,7 @@ static const struct backlight_ops max8925_backlight_ops = { ...@@ -101,7 +101,7 @@ static const struct backlight_ops max8925_backlight_ops = {
.get_brightness = max8925_backlight_get_brightness, .get_brightness = max8925_backlight_get_brightness,
}; };
static int __devinit max8925_backlight_probe(struct platform_device *pdev) static int max8925_backlight_probe(struct platform_device *pdev)
{ {
struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent);
struct max8925_backlight_pdata *pdata = pdev->dev.platform_data; struct max8925_backlight_pdata *pdata = pdev->dev.platform_data;
......
...@@ -99,7 +99,7 @@ static const struct backlight_ops pcf50633_bl_ops = { ...@@ -99,7 +99,7 @@ static const struct backlight_ops pcf50633_bl_ops = {
.options = BL_CORE_SUSPENDRESUME, .options = BL_CORE_SUSPENDRESUME,
}; };
static int __devinit pcf50633_bl_probe(struct platform_device *pdev) static int pcf50633_bl_probe(struct platform_device *pdev)
{ {
struct pcf50633_bl *pcf_bl; struct pcf50633_bl *pcf_bl;
struct device *parent = pdev->dev.parent; struct device *parent = pdev->dev.parent;
......
...@@ -73,7 +73,7 @@ static struct lcd_ops platform_lcd_ops = { ...@@ -73,7 +73,7 @@ static struct lcd_ops platform_lcd_ops = {
.check_fb = platform_lcd_match, .check_fb = platform_lcd_match,
}; };
static int __devinit platform_lcd_probe(struct platform_device *pdev) static int platform_lcd_probe(struct platform_device *pdev)
{ {
struct plat_lcd_data *pdata; struct plat_lcd_data *pdata;
struct platform_lcd *plcd; struct platform_lcd *plcd;
......
...@@ -733,7 +733,7 @@ static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev, ...@@ -733,7 +733,7 @@ static ssize_t s6e63m0_sysfs_show_gamma_table(struct device *dev,
static DEVICE_ATTR(gamma_table, 0444, static DEVICE_ATTR(gamma_table, 0444,
s6e63m0_sysfs_show_gamma_table, NULL); s6e63m0_sysfs_show_gamma_table, NULL);
static int __devinit s6e63m0_probe(struct spi_device *spi) static int s6e63m0_probe(struct spi_device *spi)
{ {
int ret = 0; int ret = 0;
struct s6e63m0 *lcd = NULL; struct s6e63m0 *lcd = NULL;
......
...@@ -328,7 +328,7 @@ static struct lcd_ops tdo24m_ops = { ...@@ -328,7 +328,7 @@ static struct lcd_ops tdo24m_ops = {
.set_mode = tdo24m_set_mode, .set_mode = tdo24m_set_mode,
}; };
static int __devinit tdo24m_probe(struct spi_device *spi) static int tdo24m_probe(struct spi_device *spi)
{ {
struct tdo24m *lcd; struct tdo24m *lcd;
struct spi_message *m; struct spi_message *m;
......
...@@ -78,7 +78,7 @@ static const struct backlight_ops bl_ops = { ...@@ -78,7 +78,7 @@ static const struct backlight_ops bl_ops = {
.update_status = tosa_bl_update_status, .update_status = tosa_bl_update_status,
}; };
static int __devinit tosa_bl_probe(struct i2c_client *client, static int tosa_bl_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct backlight_properties props; struct backlight_properties props;
......
...@@ -169,7 +169,7 @@ static struct lcd_ops tosa_lcd_ops = { ...@@ -169,7 +169,7 @@ static struct lcd_ops tosa_lcd_ops = {
.set_mode = tosa_lcd_set_mode, .set_mode = tosa_lcd_set_mode,
}; };
static int __devinit tosa_lcd_probe(struct spi_device *spi) static int tosa_lcd_probe(struct spi_device *spi)
{ {
int ret; int ret;
struct tosa_lcd_data *data; struct tosa_lcd_data *data;
......
...@@ -227,7 +227,7 @@ static struct ili9320_client vgg2432a4_client = { ...@@ -227,7 +227,7 @@ static struct ili9320_client vgg2432a4_client = {
/* Device probe */ /* Device probe */
static int __devinit vgg2432a4_probe(struct spi_device *spi) static int vgg2432a4_probe(struct spi_device *spi)
{ {
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment