Commit 98ea1ea2 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

leds: 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: Jan-Simon Moeller <jansimon.moeller@gmx.de>
Acked-by: default avatarBryan Wu <cooloney@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df07cf81
...@@ -85,7 +85,7 @@ static int adp5520_led_setup(struct adp5520_led *led) ...@@ -85,7 +85,7 @@ static int adp5520_led_setup(struct adp5520_led *led)
return ret; return ret;
} }
static int __devinit adp5520_led_prepare(struct platform_device *pdev) static int adp5520_led_prepare(struct platform_device *pdev)
{ {
struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data; struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data;
struct device *dev = pdev->dev.parent; struct device *dev = pdev->dev.parent;
...@@ -101,7 +101,7 @@ static int __devinit adp5520_led_prepare(struct platform_device *pdev) ...@@ -101,7 +101,7 @@ static int __devinit adp5520_led_prepare(struct platform_device *pdev)
return ret; return ret;
} }
static int __devinit adp5520_led_probe(struct platform_device *pdev) static int adp5520_led_probe(struct platform_device *pdev)
{ {
struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data; struct adp5520_leds_platform_data *pdata = pdev->dev.platform_data;
struct adp5520_led *led, *led_dat; struct adp5520_led *led, *led_dat;
......
...@@ -92,7 +92,7 @@ static int blink_set(struct led_classdev *cdev, ...@@ -92,7 +92,7 @@ static int blink_set(struct led_classdev *cdev,
return 0; return 0;
} }
static int __devinit asic3_led_probe(struct platform_device *pdev) static int asic3_led_probe(struct platform_device *pdev)
{ {
struct asic3_led *led = pdev->dev.platform_data; struct asic3_led *led = pdev->dev.platform_data;
int ret; int ret;
......
...@@ -35,7 +35,7 @@ static void pwmled_brightness(struct led_classdev *cdev, enum led_brightness b) ...@@ -35,7 +35,7 @@ static void pwmled_brightness(struct led_classdev *cdev, enum led_brightness b)
* NOTE: we reuse the platform_data structure of GPIO leds, * NOTE: we reuse the platform_data structure of GPIO leds,
* but repurpose its "gpio" number as a PWM channel number. * but repurpose its "gpio" number as a PWM channel number.
*/ */
static int __devinit pwmled_probe(struct platform_device *pdev) static int pwmled_probe(struct platform_device *pdev)
{ {
const struct gpio_led_platform_data *pdata; const struct gpio_led_platform_data *pdata;
struct pwmled *leds; struct pwmled *leds;
......
...@@ -670,7 +670,7 @@ static void bd2802_unregister_led_classdev(struct bd2802_led *led) ...@@ -670,7 +670,7 @@ static void bd2802_unregister_led_classdev(struct bd2802_led *led)
led_classdev_unregister(&led->cdev_led1r); led_classdev_unregister(&led->cdev_led1r);
} }
static int __devinit bd2802_probe(struct i2c_client *client, static int bd2802_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct bd2802_led *led; struct bd2802_led *led;
......
...@@ -632,7 +632,7 @@ static int blinkm_detect(struct i2c_client *client, struct i2c_board_info *info) ...@@ -632,7 +632,7 @@ static int blinkm_detect(struct i2c_client *client, struct i2c_board_info *info)
return 0; return 0;
} }
static int __devinit blinkm_probe(struct i2c_client *client, static int blinkm_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct blinkm_data *data; struct blinkm_data *data;
......
...@@ -153,7 +153,7 @@ static struct led_classdev clevo_mail_led = { ...@@ -153,7 +153,7 @@ static struct led_classdev clevo_mail_led = {
.flags = LED_CORE_SUSPENDRESUME, .flags = LED_CORE_SUSPENDRESUME,
}; };
static int __devinit clevo_mail_led_probe(struct platform_device *pdev) static int clevo_mail_led_probe(struct platform_device *pdev)
{ {
return led_classdev_register(&pdev->dev, &clevo_mail_led); return led_classdev_register(&pdev->dev, &clevo_mail_led);
} }
......
...@@ -34,7 +34,7 @@ static struct led_classdev qube_front_led = { ...@@ -34,7 +34,7 @@ static struct led_classdev qube_front_led = {
.default_trigger = "default-on", .default_trigger = "default-on",
}; };
static int __devinit cobalt_qube_led_probe(struct platform_device *pdev) static int cobalt_qube_led_probe(struct platform_device *pdev)
{ {
struct resource *res; struct resource *res;
int retval; int retval;
......
...@@ -76,7 +76,7 @@ static struct led_classdev raq_power_off_led = { ...@@ -76,7 +76,7 @@ static struct led_classdev raq_power_off_led = {
.default_trigger = "power-off", .default_trigger = "power-off",
}; };
static int __devinit cobalt_raq_led_probe(struct platform_device *pdev) static int cobalt_raq_led_probe(struct platform_device *pdev)
{ {
struct resource *res; struct resource *res;
int retval; int retval;
......
...@@ -91,7 +91,7 @@ static void da903x_led_set(struct led_classdev *led_cdev, ...@@ -91,7 +91,7 @@ static void da903x_led_set(struct led_classdev *led_cdev,
schedule_work(&led->work); schedule_work(&led->work);
} }
static int __devinit da903x_led_probe(struct platform_device *pdev) static int da903x_led_probe(struct platform_device *pdev)
{ {
struct led_info *pdata = pdev->dev.platform_data; struct led_info *pdata = pdev->dev.platform_data;
struct da903x_led *led; struct da903x_led *led;
......
...@@ -102,7 +102,7 @@ static int da9052_configure_leds(struct da9052 *da9052) ...@@ -102,7 +102,7 @@ static int da9052_configure_leds(struct da9052 *da9052)
return error; return error;
} }
static int __devinit da9052_led_probe(struct platform_device *pdev) static int da9052_led_probe(struct platform_device *pdev)
{ {
struct da9052_pdata *pdata; struct da9052_pdata *pdata;
struct da9052 *da9052; struct da9052 *da9052;
......
...@@ -91,7 +91,7 @@ static int gpio_blink_set(struct led_classdev *led_cdev, ...@@ -91,7 +91,7 @@ static int gpio_blink_set(struct led_classdev *led_cdev,
delay_on, delay_off); delay_on, delay_off);
} }
static int __devinit create_gpio_led(const struct gpio_led *template, static int create_gpio_led(const struct gpio_led *template,
struct gpio_led_data *led_dat, struct device *parent, struct gpio_led_data *led_dat, struct device *parent,
int (*blink_set)(unsigned, int, unsigned long *, unsigned long *)) int (*blink_set)(unsigned, int, unsigned long *, unsigned long *))
{ {
...@@ -167,7 +167,7 @@ static inline int sizeof_gpio_leds_priv(int num_leds) ...@@ -167,7 +167,7 @@ static inline int sizeof_gpio_leds_priv(int num_leds)
/* Code to create from OpenFirmware platform devices */ /* Code to create from OpenFirmware platform devices */
#ifdef CONFIG_OF_GPIO #ifdef CONFIG_OF_GPIO
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
{ {
struct device_node *np = pdev->dev.of_node, *child; struct device_node *np = pdev->dev.of_node, *child;
struct gpio_leds_priv *priv; struct gpio_leds_priv *priv;
...@@ -224,14 +224,14 @@ static const struct of_device_id of_gpio_leds_match[] = { ...@@ -224,14 +224,14 @@ static const struct of_device_id of_gpio_leds_match[] = {
{}, {},
}; };
#else /* CONFIG_OF_GPIO */ #else /* CONFIG_OF_GPIO */
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev) static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
{ {
return NULL; return NULL;
} }
#endif /* CONFIG_OF_GPIO */ #endif /* CONFIG_OF_GPIO */
static int __devinit gpio_led_probe(struct platform_device *pdev) static int gpio_led_probe(struct platform_device *pdev)
{ {
struct gpio_led_platform_data *pdata = pdev->dev.platform_data; struct gpio_led_platform_data *pdata = pdev->dev.platform_data;
struct gpio_leds_priv *priv; struct gpio_leds_priv *priv;
......
...@@ -377,7 +377,7 @@ static ssize_t lm3530_mode_set(struct device *dev, struct device_attribute ...@@ -377,7 +377,7 @@ static ssize_t lm3530_mode_set(struct device *dev, struct device_attribute
} }
static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set); static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set);
static int __devinit lm3530_probe(struct i2c_client *client, static int lm3530_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lm3530_platform_data *pdata = client->dev.platform_data; struct lm3530_platform_data *pdata = client->dev.platform_data;
......
...@@ -646,7 +646,7 @@ static struct attribute_group lm3533_led_attribute_group = { ...@@ -646,7 +646,7 @@ static struct attribute_group lm3533_led_attribute_group = {
.attrs = lm3533_led_attributes .attrs = lm3533_led_attributes
}; };
static int __devinit lm3533_led_setup(struct lm3533_led *led, static int lm3533_led_setup(struct lm3533_led *led,
struct lm3533_led_platform_data *pdata) struct lm3533_led_platform_data *pdata)
{ {
int ret; int ret;
...@@ -658,7 +658,7 @@ static int __devinit lm3533_led_setup(struct lm3533_led *led, ...@@ -658,7 +658,7 @@ static int __devinit lm3533_led_setup(struct lm3533_led *led,
return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm); return lm3533_ctrlbank_set_pwm(&led->cb, pdata->pwm);
} }
static int __devinit lm3533_led_probe(struct platform_device *pdev) static int lm3533_led_probe(struct platform_device *pdev)
{ {
struct lm3533 *lm3533; struct lm3533 *lm3533;
struct lm3533_led_platform_data *pdata; struct lm3533_led_platform_data *pdata;
......
...@@ -168,7 +168,7 @@ static char lm355x_name[][I2C_NAME_SIZE] = { ...@@ -168,7 +168,7 @@ static char lm355x_name[][I2C_NAME_SIZE] = {
}; };
/* chip initialize */ /* chip initialize */
static int __devinit lm355x_chip_init(struct lm355x_chip_data *chip) static int lm355x_chip_init(struct lm355x_chip_data *chip)
{ {
int ret; int ret;
unsigned int reg_val; unsigned int reg_val;
...@@ -420,7 +420,7 @@ static const struct regmap_config lm355x_regmap = { ...@@ -420,7 +420,7 @@ static const struct regmap_config lm355x_regmap = {
}; };
/* module initialize */ /* module initialize */
static int __devinit lm355x_probe(struct i2c_client *client, static int lm355x_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lm355x_platform_data *pdata = client->dev.platform_data; struct lm355x_platform_data *pdata = client->dev.platform_data;
......
...@@ -93,7 +93,7 @@ struct lm3642_chip_data { ...@@ -93,7 +93,7 @@ struct lm3642_chip_data {
}; };
/* chip initialize */ /* chip initialize */
static int __devinit lm3642_chip_init(struct lm3642_chip_data *chip) static int lm3642_chip_init(struct lm3642_chip_data *chip)
{ {
int ret; int ret;
struct lm3642_platform_data *pdata = chip->pdata; struct lm3642_platform_data *pdata = chip->pdata;
...@@ -313,7 +313,7 @@ static const struct regmap_config lm3642_regmap = { ...@@ -313,7 +313,7 @@ static const struct regmap_config lm3642_regmap = {
.max_register = REG_MAX, .max_register = REG_MAX,
}; };
static int __devinit lm3642_probe(struct i2c_client *client, static int lm3642_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lm3642_platform_data *pdata = client->dev.platform_data; struct lm3642_platform_data *pdata = client->dev.platform_data;
......
...@@ -374,7 +374,7 @@ static int lp3944_configure(struct i2c_client *client, ...@@ -374,7 +374,7 @@ static int lp3944_configure(struct i2c_client *client,
return err; return err;
} }
static int __devinit lp3944_probe(struct i2c_client *client, static int lp3944_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lp3944_platform_data *lp3944_pdata = client->dev.platform_data; struct lp3944_platform_data *lp3944_pdata = client->dev.platform_data;
......
...@@ -687,7 +687,7 @@ static void lp5521_unregister_sysfs(struct i2c_client *client) ...@@ -687,7 +687,7 @@ static void lp5521_unregister_sysfs(struct i2c_client *client)
&lp5521_led_attribute_group); &lp5521_led_attribute_group);
} }
static int __devinit lp5521_init_led(struct lp5521_led *led, static int lp5521_init_led(struct lp5521_led *led,
struct i2c_client *client, struct i2c_client *client,
int chan, struct lp5521_platform_data *pdata) int chan, struct lp5521_platform_data *pdata)
{ {
...@@ -736,7 +736,7 @@ static int __devinit lp5521_init_led(struct lp5521_led *led, ...@@ -736,7 +736,7 @@ static int __devinit lp5521_init_led(struct lp5521_led *led,
return 0; return 0;
} }
static int __devinit lp5521_probe(struct i2c_client *client, static int lp5521_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lp5521_chip *chip; struct lp5521_chip *chip;
......
...@@ -833,7 +833,7 @@ static int __init lp5523_init_engine(struct lp5523_engine *engine, int id) ...@@ -833,7 +833,7 @@ static int __init lp5523_init_engine(struct lp5523_engine *engine, int id)
return 0; return 0;
} }
static int __devinit lp5523_init_led(struct lp5523_led *led, struct device *dev, static int lp5523_init_led(struct lp5523_led *led, struct device *dev,
int chan, struct lp5523_platform_data *pdata, int chan, struct lp5523_platform_data *pdata,
const char *chip_name) const char *chip_name)
{ {
...@@ -882,7 +882,7 @@ static int __devinit lp5523_init_led(struct lp5523_led *led, struct device *dev, ...@@ -882,7 +882,7 @@ static int __devinit lp5523_init_led(struct lp5523_led *led, struct device *dev,
return 0; return 0;
} }
static int __devinit lp5523_probe(struct i2c_client *client, static int lp5523_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct lp5523_chip *chip; struct lp5523_chip *chip;
......
...@@ -125,7 +125,7 @@ static void lp8788_brightness_set(struct led_classdev *led_cdev, ...@@ -125,7 +125,7 @@ static void lp8788_brightness_set(struct led_classdev *led_cdev,
schedule_work(&led->work); schedule_work(&led->work);
} }
static __devinit int lp8788_led_probe(struct platform_device *pdev) static int lp8788_led_probe(struct platform_device *pdev)
{ {
struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent);
struct lp8788_led_platform_data *led_pdata; struct lp8788_led_platform_data *led_pdata;
......
...@@ -82,7 +82,7 @@ static void lt3593_led_set(struct led_classdev *led_cdev, ...@@ -82,7 +82,7 @@ static void lt3593_led_set(struct led_classdev *led_cdev,
schedule_work(&led_dat->work); schedule_work(&led_dat->work);
} }
static int __devinit create_lt3593_led(const struct gpio_led *template, static int create_lt3593_led(const struct gpio_led *template,
struct lt3593_led_data *led_dat, struct device *parent) struct lt3593_led_data *led_dat, struct device *parent)
{ {
int ret, state; int ret, state;
...@@ -140,7 +140,7 @@ static void delete_lt3593_led(struct lt3593_led_data *led) ...@@ -140,7 +140,7 @@ static void delete_lt3593_led(struct lt3593_led_data *led)
gpio_free(led->gpio); gpio_free(led->gpio);
} }
static int __devinit lt3593_led_probe(struct platform_device *pdev) static int lt3593_led_probe(struct platform_device *pdev)
{ {
struct gpio_led_platform_data *pdata = pdev->dev.platform_data; struct gpio_led_platform_data *pdata = pdev->dev.platform_data;
struct lt3593_led_data *leds_data; struct lt3593_led_data *leds_data;
......
...@@ -229,7 +229,7 @@ static ssize_t max8997_led_store_mode(struct device *dev, ...@@ -229,7 +229,7 @@ static ssize_t max8997_led_store_mode(struct device *dev,
static DEVICE_ATTR(mode, 0644, max8997_led_show_mode, max8997_led_store_mode); static DEVICE_ATTR(mode, 0644, max8997_led_show_mode, max8997_led_store_mode);
static int __devinit max8997_led_probe(struct platform_device *pdev) static int max8997_led_probe(struct platform_device *pdev)
{ {
struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent); struct max8997_dev *iodev = dev_get_drvdata(pdev->dev.parent);
struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev); struct max8997_platform_data *pdata = dev_get_platdata(iodev->dev);
......
...@@ -128,7 +128,7 @@ static void mc13783_led_set(struct led_classdev *led_cdev, ...@@ -128,7 +128,7 @@ static void mc13783_led_set(struct led_classdev *led_cdev,
schedule_work(&led->work); schedule_work(&led->work);
} }
static int __devinit mc13783_led_setup(struct mc13783_led *led, int max_current) static int mc13783_led_setup(struct mc13783_led *led, int max_current)
{ {
int shift = 0; int shift = 0;
int mask = 0; int mask = 0;
...@@ -181,7 +181,7 @@ static int __devinit mc13783_led_setup(struct mc13783_led *led, int max_current) ...@@ -181,7 +181,7 @@ static int __devinit mc13783_led_setup(struct mc13783_led *led, int max_current)
return ret; return ret;
} }
static int __devinit mc13783_leds_prepare(struct platform_device *pdev) static int mc13783_leds_prepare(struct platform_device *pdev)
{ {
struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct mc13xxx *dev = dev_get_drvdata(pdev->dev.parent); struct mc13xxx *dev = dev_get_drvdata(pdev->dev.parent);
...@@ -262,7 +262,7 @@ static int __devinit mc13783_leds_prepare(struct platform_device *pdev) ...@@ -262,7 +262,7 @@ static int __devinit mc13783_leds_prepare(struct platform_device *pdev)
return ret; return ret;
} }
static int __devinit mc13783_led_probe(struct platform_device *pdev) static int mc13783_led_probe(struct platform_device *pdev)
{ {
struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev); struct mc13xxx_leds_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct mc13xxx_led_platform_data *led_cur; struct mc13xxx_led_platform_data *led_cur;
......
...@@ -71,7 +71,7 @@ static void gpio_ext_set_value(struct netxbig_gpio_ext *gpio_ext, ...@@ -71,7 +71,7 @@ static void gpio_ext_set_value(struct netxbig_gpio_ext *gpio_ext,
spin_unlock_irqrestore(&gpio_ext_lock, flags); spin_unlock_irqrestore(&gpio_ext_lock, flags);
} }
static int __devinit gpio_ext_init(struct netxbig_gpio_ext *gpio_ext) static int gpio_ext_init(struct netxbig_gpio_ext *gpio_ext)
{ {
int err; int err;
int i; int i;
...@@ -301,7 +301,7 @@ static void delete_netxbig_led(struct netxbig_led_data *led_dat) ...@@ -301,7 +301,7 @@ static void delete_netxbig_led(struct netxbig_led_data *led_dat)
led_classdev_unregister(&led_dat->cdev); led_classdev_unregister(&led_dat->cdev);
} }
static int __devinit static int
create_netxbig_led(struct platform_device *pdev, create_netxbig_led(struct platform_device *pdev,
struct netxbig_led_data *led_dat, struct netxbig_led_data *led_dat,
const struct netxbig_led *template) const struct netxbig_led *template)
...@@ -352,7 +352,7 @@ create_netxbig_led(struct platform_device *pdev, ...@@ -352,7 +352,7 @@ create_netxbig_led(struct platform_device *pdev,
return ret; return ret;
} }
static int __devinit netxbig_led_probe(struct platform_device *pdev) static int netxbig_led_probe(struct platform_device *pdev)
{ {
struct netxbig_led_platform_data *pdata = pdev->dev.platform_data; struct netxbig_led_platform_data *pdata = pdev->dev.platform_data;
struct netxbig_led_data *leds_data; struct netxbig_led_data *leds_data;
......
...@@ -184,7 +184,7 @@ static ssize_t ns2_led_sata_show(struct device *dev, ...@@ -184,7 +184,7 @@ static ssize_t ns2_led_sata_show(struct device *dev,
static DEVICE_ATTR(sata, 0644, ns2_led_sata_show, ns2_led_sata_store); static DEVICE_ATTR(sata, 0644, ns2_led_sata_show, ns2_led_sata_store);
static int __devinit static int
create_ns2_led(struct platform_device *pdev, struct ns2_led_data *led_dat, create_ns2_led(struct platform_device *pdev, struct ns2_led_data *led_dat,
const struct ns2_led *template) const struct ns2_led *template)
{ {
...@@ -263,7 +263,7 @@ static void delete_ns2_led(struct ns2_led_data *led_dat) ...@@ -263,7 +263,7 @@ static void delete_ns2_led(struct ns2_led_data *led_dat)
gpio_free(led_dat->slow); gpio_free(led_dat->slow);
} }
static int __devinit ns2_led_probe(struct platform_device *pdev) static int ns2_led_probe(struct platform_device *pdev)
{ {
struct ns2_led_platform_data *pdata = pdev->dev.platform_data; struct ns2_led_platform_data *pdata = pdev->dev.platform_data;
struct ns2_led_data *leds_data; struct ns2_led_data *leds_data;
......
...@@ -115,7 +115,7 @@ static void ot200_led_brightness_set(struct led_classdev *led_cdev, ...@@ -115,7 +115,7 @@ static void ot200_led_brightness_set(struct led_classdev *led_cdev,
spin_unlock_irqrestore(&value_lock, flags); spin_unlock_irqrestore(&value_lock, flags);
} }
static int __devinit ot200_led_probe(struct platform_device *pdev) static int ot200_led_probe(struct platform_device *pdev)
{ {
int i; int i;
int ret; int ret;
......
...@@ -255,7 +255,7 @@ static void pca955x_led_set(struct led_classdev *led_cdev, enum led_brightness v ...@@ -255,7 +255,7 @@ static void pca955x_led_set(struct led_classdev *led_cdev, enum led_brightness v
schedule_work(&pca955x->work); schedule_work(&pca955x->work);
} }
static int __devinit pca955x_probe(struct i2c_client *client, static int pca955x_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct pca955x *pca955x; struct pca955x *pca955x;
......
...@@ -93,7 +93,7 @@ static void pca9633_led_set(struct led_classdev *led_cdev, ...@@ -93,7 +93,7 @@ static void pca9633_led_set(struct led_classdev *led_cdev,
schedule_work(&pca9633->work); schedule_work(&pca9633->work);
} }
static int __devinit pca9633_probe(struct i2c_client *client, static int pca9633_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct pca9633_led *pca9633; struct pca9633_led *pca9633;
......
...@@ -37,7 +37,7 @@ static struct led_classdev rb532_uled = { ...@@ -37,7 +37,7 @@ static struct led_classdev rb532_uled = {
.default_trigger = "nand-disk", .default_trigger = "nand-disk",
}; };
static int __devinit rb532_led_probe(struct platform_device *pdev) static int rb532_led_probe(struct platform_device *pdev)
{ {
return led_classdev_register(&pdev->dev, &rb532_uled); return led_classdev_register(&pdev->dev, &rb532_uled);
} }
......
...@@ -140,7 +140,7 @@ static void regulator_led_brightness_set(struct led_classdev *led_cdev, ...@@ -140,7 +140,7 @@ static void regulator_led_brightness_set(struct led_classdev *led_cdev,
schedule_work(&led->work); schedule_work(&led->work);
} }
static int __devinit regulator_led_probe(struct platform_device *pdev) static int regulator_led_probe(struct platform_device *pdev)
{ {
struct led_regulator_platform_data *pdata = pdev->dev.platform_data; struct led_regulator_platform_data *pdata = pdev->dev.platform_data;
struct regulator_led *led; struct regulator_led *led;
......
...@@ -238,7 +238,7 @@ static void r_tpu_set_brightness(struct led_classdev *ldev, ...@@ -238,7 +238,7 @@ static void r_tpu_set_brightness(struct led_classdev *ldev,
schedule_work(&p->work); schedule_work(&p->work);
} }
static int __devinit r_tpu_probe(struct platform_device *pdev) static int r_tpu_probe(struct platform_device *pdev)
{ {
struct led_renesas_tpu_config *cfg = pdev->dev.platform_data; struct led_renesas_tpu_config *cfg = pdev->dev.platform_data;
struct r_tpu_priv *p; struct r_tpu_priv *p;
......
...@@ -263,7 +263,7 @@ static int nasgpio_led_set_blink(struct led_classdev *led_cdev, ...@@ -263,7 +263,7 @@ static int nasgpio_led_set_blink(struct led_classdev *led_cdev,
* already taken care of this, but we will do so in a non destructive manner * already taken care of this, but we will do so in a non destructive manner
* so that we have what we need whether the BIOS did it or not. * so that we have what we need whether the BIOS did it or not.
*/ */
static int __devinit ich7_gpio_init(struct device *dev) static int ich7_gpio_init(struct device *dev)
{ {
int i; int i;
u32 config_data = 0; u32 config_data = 0;
...@@ -342,7 +342,7 @@ static void ich7_lpc_cleanup(struct device *dev) ...@@ -342,7 +342,7 @@ static void ich7_lpc_cleanup(struct device *dev)
* so we can retrive the required operational information and prepare the GPIO. * so we can retrive the required operational information and prepare the GPIO.
*/ */
static struct pci_dev *nas_gpio_pci_dev; static struct pci_dev *nas_gpio_pci_dev;
static int __devinit ich7_lpc_probe(struct pci_dev *dev, static int ich7_lpc_probe(struct pci_dev *dev,
const struct pci_device_id *id) const struct pci_device_id *id)
{ {
int status; int status;
......
...@@ -123,7 +123,7 @@ struct sunfire_drvdata { ...@@ -123,7 +123,7 @@ struct sunfire_drvdata {
struct sunfire_led leds[NUM_LEDS_PER_BOARD]; struct sunfire_led leds[NUM_LEDS_PER_BOARD];
}; };
static int __devinit sunfire_led_generic_probe(struct platform_device *pdev, static int sunfire_led_generic_probe(struct platform_device *pdev,
struct led_type *types) struct led_type *types)
{ {
struct sunfire_drvdata *p; struct sunfire_drvdata *p;
...@@ -192,7 +192,7 @@ static struct led_type clockboard_led_types[NUM_LEDS_PER_BOARD] = { ...@@ -192,7 +192,7 @@ static struct led_type clockboard_led_types[NUM_LEDS_PER_BOARD] = {
}, },
}; };
static int __devinit sunfire_clockboard_led_probe(struct platform_device *pdev) static int sunfire_clockboard_led_probe(struct platform_device *pdev)
{ {
return sunfire_led_generic_probe(pdev, clockboard_led_types); return sunfire_led_generic_probe(pdev, clockboard_led_types);
} }
...@@ -213,7 +213,7 @@ static struct led_type fhc_led_types[NUM_LEDS_PER_BOARD] = { ...@@ -213,7 +213,7 @@ static struct led_type fhc_led_types[NUM_LEDS_PER_BOARD] = {
}, },
}; };
static int __devinit sunfire_fhc_led_probe(struct platform_device *pdev) static int sunfire_fhc_led_probe(struct platform_device *pdev)
{ {
return sunfire_led_generic_probe(pdev, fhc_led_types); return sunfire_led_generic_probe(pdev, fhc_led_types);
} }
......
...@@ -667,7 +667,7 @@ static void tca6507_remove_gpio(struct tca6507_chip *tca) ...@@ -667,7 +667,7 @@ static void tca6507_remove_gpio(struct tca6507_chip *tca)
} }
#endif /* CONFIG_GPIOLIB */ #endif /* CONFIG_GPIOLIB */
static int __devinit tca6507_probe(struct i2c_client *client, static int tca6507_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct tca6507_chip *tca; struct tca6507_chip *tca;
......
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